void (GradleProjectSettings settings, String buildRootProjectName, String buildPath) { GradleProjectSettings.CompositeBuild compositeBuild = settings.getCompositeBuild(); if (compositeBuild == null) { compositeBuild = new GradleProjectSettings.CompositeBuild(); compositeBuild.setCompositeDefinitionSource(CompositeDefinitionSource.IDE); settings.setCompositeBuild(compositeBuild); } assert compositeBuild.getCompositeDefinitionSource() == CompositeDefinitionSource.IDE; compositeBuild.setCompositeDefinitionSource(CompositeDefinitionSource.IDE); BuildParticipant buildParticipant = new BuildParticipant(); buildParticipant.setRootProjectName(buildRootProjectName); buildParticipant.setRootPath(buildPath); compositeBuild.getCompositeParticipants().add(buildParticipant); }