boolean (UElement sourceNode, PsiMember member, PsiClass accessObjectType) { PsiClass memberClass = member.getContainingClass(); if (memberClass == null) return false; PsiClass contextClass = getContextClass(sourceNode, member instanceof PsiClass); if (contextClass == null) return false; return canAccessProtectedMember(member, memberClass, accessObjectType, member.hasModifierProperty(PsiModifier.STATIC), contextClass); }