List<MavenGoalAction> (MavenProject mavenProject) { List<MavenGoalAction> result = new ArrayList<>(); for (String eachGoal : collectGoals(mavenProject)) { result.add(new MavenGoalAction(mavenProject, eachGoal)); } return result; }