List<BuildTask> (ArtifactBuildTaskProvider.ArtifactBuildPhase phase) { List<BuildTask> result = new ArrayList<>(); for (ArtifactBuildTaskProvider provider : JpsServiceManager.getInstance().getExtensions(ArtifactBuildTaskProvider.class)) { result.addAll(provider.createArtifactBuildTasks(artifact, phase)); } return result; }