public static @NotNull String getDirectoryBaseProjectName(@NotNull Path dir) {
    String name = JpsPathUtil.readProjectName(dir);
    return name != null ? name : JpsPathUtil.getDefaultProjectName(dir);
  }
public static @NotNull String getDirectoryBaseProjectName(@NotNull Path dir)