void (AnnotationHolder holder, GrMember member, GrModifierList modifiersList) { if (member.hasModifierProperty(PsiModifier.FINAL) && member.hasModifierProperty(PsiModifier.ABSTRACT)) { String message = GroovyBundle.message("illegal.combination.of.modifiers.abstract.and.final"); AnnotationBuilder builder = holder.newAnnotation(HighlightSeverity.ERROR, message) .range(modifiersList); builder = registerLocalFix(builder, new GrModifierFix(member, PsiModifier.FINAL, false, false, GrModifierFix.MODIFIER_LIST), modifiersList, message, ProblemHighlightType.ERROR, modifiersList.getTextRange()); builder = registerLocalFix(builder, new GrModifierFix(member, PsiModifier.ABSTRACT, false, false, GrModifierFix.MODIFIER_LIST), modifiersList, message, ProblemHighlightType.ERROR, modifiersList.getTextRange()); builder.create(); } }