void (AnnotationHolder holder, @NotNull GrModifierList modifierList, @NotNull @InspectionMessage String message) { final PsiElement[] modifiers = modifierList.getModifiers(); for (PsiElement modifier : modifiers) { if (!(modifier instanceof PsiAnnotation)) { holder.newAnnotation(HighlightSeverity.ERROR, message).range(modifier).create(); } } }