void (PsiElement element, String description, HighlightingFeature feature, PsiAnnotation annotation) { boolean isReflective = Boolean.TRUE.equals(AnnotationUtil.getBooleanAttributeValue(annotation, "reflective")); HighlightInfoType type = isReflective ? HighlightInfoType.WARNING : HighlightInfoType.ERROR; HighlightInfo.Builder highlightInfo = HighlightUtil.checkFeature(element, feature, myLanguageLevel, element.getContainingFile(), description, type); if (highlightInfo != null) { myErrorSink.accept(highlightInfo); } }