diff --git a/java/java-impl/src/com/intellij/codeInsight/hints/AnnotationInlayProvider.kt b/java/java-impl/src/com/intellij/codeInsight/hints/AnnotationInlayProvider.kt index b4e7f49e2c53..d463786af199 100644 --- a/java/java-impl/src/com/intellij/codeInsight/hints/AnnotationInlayProvider.kt +++ b/java/java-impl/src/com/intellij/codeInsight/hints/AnnotationInlayProvider.kt @@ -40,18 +40,10 @@ class AnnotationInlayProvider : InlayHintsProvider sink.addBlockElement(offset, true, true, 0, menuOnClick) - else -> sink.addInlineElement(offset, true, menuOnClick) + is PsiMethod -> sink.addBlockElement(offset, false, true, 0, presentation) + else -> sink.addInlineElement(offset, true, presentation) } } } @@ -59,6 +51,21 @@ class AnnotationInlayProvider : InlayHintsProvider