[Groovy] Replace usage of deprecated InlayTreeSink#addPresentation to the newer overload

IDEA-351784

GitOrigin-RevId: 206bf17622a4a7d28b4c31ab0266b5ed42383ff2
This commit is contained in:
Georgii Ustinov
2024-06-13 11:51:48 +00:00
committed by intellij-monorepo-bot
parent ce5a0d65c2
commit fec028fd33
@@ -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)
}