private static boolean checkMemberAccessibility(@NotNull PsiMember member, @NotNull PsiResolveHelper resolveHelper, @NotNull PsiFile psiFile,
                                                  @NotNull PsiClass aClass, @NotNull @NlsSafe String prefix) {
    if (member.hasModifierProperty(PsiModifier.STATIC) && resolveHelper.isAccessible(member, psiFile, null)) {
      PsiClass containingClass = member.getContainingClass();
      if (containingClass == null) return false;
      for (PsiClass superClass : InheritanceUtil.getSuperClasses(aClass)) {
        if (prefix.equals(superClass.getQualifiedName()) && InheritanceUtil.isInheritorOrSelf(superClass, containingClass, true)) {
          return false;
        }
      }
      return true;
    }
    return false;
  }
private static boolean checkMemberAccessibility(@NotNull PsiMember member, @NotNull PsiResolveHelper resolveHelper, @NotNull PsiFile psiFile,
                                                  @NotNull PsiClass aClass, @NotNull @NlsSafe String prefix)