void (@NotNull PsiElement element, @NotNull AnnotationHolder holder) { if (element instanceof PsiMethod) { holder.newSilentAnnotation(HighlightSeverity.ERROR).range(((PsiMethod)element).getNameIdentifier()) .withFix(new MyFix()) .newFix(new MyFix()).batch().registerFix() .textAttributes(JavaHighlightingColors.DOC_COMMENT_TAG_VALUE).create(); } }