private static boolean isStaticAccessibleFromSubclass(PsiElement element) {
      if (!(element instanceof PsiMember member) || !member.hasModifierProperty(PsiModifier.STATIC)) {
        return false;
      }
      final PsiClass aClass = member.getContainingClass();
      return aClass == null || (!aClass.isInterface() && !aClass.hasModifierProperty(PsiModifier.FINAL));
    }
private static boolean isStaticAccessibleFromSubclass(PsiElement element)