public static @NlsSafe String getPackageName(PsiPackage psiPackage) {
    if (psiPackage == null) {
      return null;
    }
    String name = psiPackage.getQualifiedName();
    if (!name.isEmpty()) {
      return name;
    }
    return getDefaultPackageName();
  }
public static @NlsSafe String getPackageName(PsiPackage psiPackage)