@Override
  public int getMinVisibilityLevel(PsiMember member) {
    if (member instanceof PsiClass psiClass) {
      PsiJavaModule javaModule = getJavaModule(psiClass);
      if (javaModule != null && !isServiceClass(psiClass, javaModule) && isInExportedPackage(psiClass, javaModule)) {
        return PsiUtil.ACCESS_LEVEL_PACKAGE_LOCAL;
      }
    }
    return ACCESS_LEVEL_INVALID;
  }
@Override
  public int getMinVisibilityLevel(PsiMember member)