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