boolean (@NotNull PsiMember member) { if (member.hasModifierProperty(PsiModifier.PRIVATE)) { return true; } PsiClass containingClass = member.getContainingClass(); if (containingClass != null && isPrivate(containingClass)) { return true; } return false; }