void (@NotNull DefaultBuildController controller) { GradleBuild mainGradleBuild = controller.getBuildModel(); //We only need these later, but need to fetch them before fetching other models because of https://github.com/gradle/gradle/issues/20008 Set<GradleBuild> nestedBuilds = getNestedBuilds(controller, mainGradleBuild); addModels(controller, mainGradleBuild); for (GradleBuild includedBuild : nestedBuilds) { if (!myIsProjectsLoadedAction) { myAllModels.addIncludedBuild(DefaultBuild.convertGradleBuild(includedBuild)); } addModels(controller, includedBuild); } setupIncludedBuildsHierarchy(myAllModels.getIncludedBuilds(), nestedBuilds); if (myIsProjectsLoadedAction) { controller.getModel(TurnOffDefaultTasks.class); } }