public static boolean commitWithExecutor(@NotNull Project project,
                                           @NotNull Collection<?> included,
                                           @Nullable LocalChangeList initialChangeList,
                                           @NotNull CommitExecutor executor,
                                           @Nullable String comment,
                                           @Nullable CommitResultHandler customResultHandler) {
    boolean showVcsCommit = false;
    Set<AbstractVcs> affectedVcses = getVcsesForLocalChanges(project, showVcsCommit);
    if (affectedVcses.isEmpty()) {
      showNothingToCommitMessage(project);
      return false;
    }

    List<CommitExecutor> executors = singletonList(executor);
    return showCommitDialog(project, affectedVcses, included, initialChangeList, executors, showVcsCommit,
                            comment, customResultHandler);
  }
public static boolean commitWithExecutor(@NotNull Project project,
                                           @NotNull Collection<?> included,
                                           @Nullable LocalChangeList initialChangeList,
                                           @NotNull CommitExecutor executor,
                                           @Nullable String comment,
                                           @Nullable CommitResultHandler customResultHandler)