From fec028fd33c4e54c9db07942c3c96a6f0054c29c Mon Sep 17 00:00:00 2001 From: Georgii Ustinov Date: Thu, 13 Jun 2024 10:32:33 +0300 Subject: [PATCH] [Groovy] Replace usage of deprecated InlayTreeSink#addPresentation to the newer overload IDEA-351784 GitOrigin-RevId: 206bf17622a4a7d28b4c31ab0266b5ed42383ff2 --- .../hint/types/GroovyLambdaParameterTypeHintsInlayProvider.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/codeInsight/hint/types/GroovyLambdaParameterTypeHintsInlayProvider.kt b/plugins/groovy/src/org/jetbrains/plugins/groovy/codeInsight/hint/types/GroovyLambdaParameterTypeHintsInlayProvider.kt index b0bd841dba08..d9b4badc597d 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/codeInsight/hint/types/GroovyLambdaParameterTypeHintsInlayProvider.kt +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/codeInsight/hint/types/GroovyLambdaParameterTypeHintsInlayProvider.kt @@ -39,7 +39,7 @@ class GroovyLambdaParameterTypeHintsInlayProvider : InlayHintsProvider { sink: InlayTreeSink, suffixText: String) { val type = getRepresentableType(parameter) ?: return - sink.addPresentation(InlineInlayPosition(offset, relatedToPrevious = true), hasBackground = true) { + sink.addPresentation(InlineInlayPosition(offset, relatedToPrevious = true), null, null, HintColorKind.Default) { JavaTypeHintsFactory.typeHint(type, this) text(suffixText) }