void (PsiElement element) { if (element instanceof PsiMember member) { if (PsiTreeUtil.isAncestor(myElementToCheck, element, false)) { return; // internal reference } myAccessible = PsiUtil.isAccessible(member, myPlace, null); } }