ProjectTask (boolean isIncrementalBuild, ProjectModelBuildableElement... buildableElements) { return buildableElements.length == 1 ? new ProjectModelBuildTaskImpl<>(buildableElements[0], isIncrementalBuild) : new ProjectTaskList(map(Arrays.asList(buildableElements), buildableElement -> new ProjectModelBuildTaskImpl<>(buildableElement, isIncrementalBuild))); }