Build (@NotNull GradleBuild gradleBuild) { String name = gradleBuild.getRootProject().getName(); File rootDir = gradleBuild.getBuildIdentifier().getRootDir(); DefaultBuild build = new DefaultBuild(name, rootDir); for (BasicGradleProject gradleProject : gradleBuild.getProjects()) { build.myProjects.add(DefaultProject.convertGradleProject(gradleProject)); } return build; }