private static void buildArtifacts(@NotNull Project project,
                                     @NotNull ProjectTaskContext context,
                                     @Nullable ProjectTaskNotification callback,
                                     List<? extends ProjectModelBuildTask> tasks) {
    for (ProjectModelBuildTask buildTask : tasks) {
      if (buildTask.getBuildableElement() instanceof Artifact) {
        for (MavenArtifactBuilder artifactBuilder : MavenArtifactBuilder.EP_NAME.getExtensions()) {
          if (artifactBuilder.isApplicable(buildTask)) {
            artifactBuilder.build(project, buildTask, context, callback);
          }
        }
      }
    }
  }
private static void buildArtifacts(@NotNull Project project,
                                     @NotNull ProjectTaskContext context,
                                     @Nullable ProjectTaskNotification callback,
                                     List<? extends ProjectModelBuildTask> tasks)