boolean (@NotNull GrField field) { GrModifierList fieldModifierList = field.getModifierList(); if (fieldModifierList != null && fieldModifierList.hasExplicitVisibilityModifiers()) return false; PsiClass aClass = field.getContainingClass(); if (aClass == null) return false; return GrImmutableUtils.hasImmutableAnnotation(aClass); }