void (@NotNull PsiAnnotation annotation) { super.visitAnnotation(annotation); if (!JCiPUtil.isGuardedByAnnotation(annotation)) { return; } final String guardValue = JCiPUtil.getGuardValue(annotation); if (guardValue == null || "this".equals(guardValue)) { return; } final PsiClass containingClass = PsiTreeUtil.getParentOfType(annotation, PsiClass.class); if (containingClass == null) { return; } final PsiField guardField = containingClass.findFieldByName(guardValue, true); if (guardField == null) { return; } if (guardField.hasModifierProperty(PsiModifier.FINAL)) { return; } final PsiAnnotationMemberValue member = annotation.findAttributeValue("value"); if (member == null) { return; } myHolder.registerProblem(member, JavaAnalysisBundle.message("non.final.guarded.by.field.ref.loc")); }