public void execute(@NotNull String baseDir,
                      @NotNull Key embedderKind,
                      @NotNull MavenEmbeddersManager.EmbedderTask task) throws MavenProcessCanceledException {
    MavenEmbedderWrapper embedder = getEmbedder(embedderKind, baseDir);
    try {
      task.run(embedder);
    }
    finally {
      release(embedder);
    }
  }
public void execute(@NotNull String baseDir,
                      @NotNull Key embedderKind,
                      @NotNull MavenEmbeddersManager.EmbedderTask task)