public static boolean isPublicMember(@NotNull PsiMember classMember) {
    return classMember.hasModifierProperty(PsiModifier.PUBLIC) && isAccessible(classMember.getContainingClass());
  }
public static boolean isPublicMember(@NotNull PsiMember classMember)