private void addBuildOutcomes(ProjectOutcomes projectOutcomes, ProjectOutcomes rootProject, Set<BuildOutcome> buildOutcomes) {
for (GradleBuildOutcome outcome : projectOutcomes.getOutcomes()) {
if (outcome instanceof GradleFileBuildOutcome) {
addFileBuildOutcome((GradleFileBuildOutcome) outcome, rootProject, buildOutcomes);
} else {
new UnknownBuildOutcome(outcome.getTaskPath(), outcome.getDescription());
}
}
for (ProjectOutcomes childProject : projectOutcomes.getChildren()) {
addBuildOutcomes(childProject, rootProject, buildOutcomes);