public static boolean isExplicitPackage(@NotNull PsiDirectory directory) {
    return isOrdinaryPackage(directory) || isCustomPackage(directory);
  }
public static boolean isExplicitPackage(@NotNull PsiDirectory directory)