HighlightInfoType (@NotNull PsiMethod method, boolean isDeclaration, boolean isInheritedMethod, boolean isStaticallyImported) { if (method.isConstructor()) { return isDeclaration ? JavaHighlightInfoTypes.CONSTRUCTOR_DECLARATION : JavaHighlightInfoTypes.CONSTRUCTOR_CALL; } if (isDeclaration) return JavaHighlightInfoTypes.METHOD_DECLARATION; if (method.hasModifierProperty(PsiModifier.STATIC)) { return isStaticallyImported ? JavaHighlightInfoTypes.STATIC_METHOD_CALL_IMPORTED : JavaHighlightInfoTypes.STATIC_METHOD; } if (isInheritedMethod) return JavaHighlightInfoTypes.INHERITED_METHOD; if(method.hasModifierProperty(PsiModifier.ABSTRACT)) { return JavaHighlightInfoTypes.ABSTRACT_METHOD; } return JavaHighlightInfoTypes.METHOD_CALL; }