void ( @NotNull BuildController controller, @NotNull GradleBuild buildModel, @NotNull BuildModelConsumer consumer ) { Map<BasicGradleProject, PartialExternalProject> externalProjectMap = collectExternalProjects(controller, buildModel); PartialExternalProject rootExternalProject = buildExternalProjectHierarchy(buildModel, externalProjectMap); if (rootExternalProject != null) { consumer.consume(buildModel, rootExternalProject, ExternalProject.class); } }