public static boolean isPackage(@NotNull PsiFile file) {
    for (PyCustomPackageIdentifier customPackageIdentifier : PyCustomPackageIdentifier.EP_NAME.getExtensions()) {
      if (customPackageIdentifier.isPackageFile(file)) {
        return true;
      }
    }
    return PyNames.INIT_DOT_PY.equals(file.getName());
  }
public static boolean isPackage(@NotNull PsiFile file)