FieldAccessibility (PsiElement element) { for (PsiClass aClass : myClassInheritors) { if (PsiTreeUtil.isAncestor(aClass, element, false)) { return new FieldAccessibility(true, aClass); } } return FieldAccessibility.INVISIBLE; }