コード例 #1
0
  private boolean isAccessible(final PsiElement element) {
    if (!myCheckAccess) return true;
    if (!(element instanceof PsiMember)) return true;

    PsiMember member = (PsiMember) element;
    return JavaPsiFacade.getInstance(element.getProject())
        .getResolveHelper()
        .isAccessible(
            member, member.getModifierList(), myElement, myQualifierClass, myDeclarationHolder);
  }