public boolean executeMergeCommand(@Nullable @Nls String commandName,
                                     boolean underBulkUpdate,
                                     @Nullable List<? extends TextMergeChange> affected,
                                     @NotNull Runnable task) {
    myContentModified = true;

    IntList affectedIndexes = null;
    if (affected != null) {
      affectedIndexes = new IntArrayList(affected.size());
      for (TextMergeChange change : affected) {
        affectedIndexes.add(change.getIndex());
      }
    }

    return myModel.executeMergeCommand(commandName, null, UndoConfirmationPolicy.DEFAULT, underBulkUpdate, affectedIndexes, task);
  }
public boolean executeMergeCommand(@Nullable @Nls String commandName,
                                     boolean underBulkUpdate,
                                     @Nullable List<? extends TextMergeChange> affected,
                                     @NotNull Runnable task)