public static @NotNull DefaultGradleLightBuild convertGradleBuild(@NotNull GradleBuild gradleBuild) {
    Map<BasicGradleProject, DefaultGradleLightProject> projects = gradleBuild.getProjects().stream()
      .map(it -> new Pair<>(it, convertGradleProject(it)))
      .collect(Collectors.toMap(it -> it.getFirst(), it -> it.getSecond()));
    BasicGradleProject rootGradleProject = gradleBuild.getRootProject();

    replicateModelHierarchy(
      rootGradleProject,
      it -> projects.get(it),
      BasicGradleProject::getChildren,
      DefaultGradleLightProject::addChildProject
    );

    return new DefaultGradleLightBuild(
      rootGradleProject.getName(),
      convertGradleBuildIdentifier(gradleBuild.getBuildIdentifier()),
      projects.get(rootGradleProject),
      new ArrayList<>(projects.values())
    );
  }
public static @NotNull DefaultGradleLightBuild convertGradleBuild(@NotNull GradleBuild gradleBuild)