@NotNull
  @Override
  public LocalChangesAction selectLocalChangesAction(boolean mergeAll) {
    LocalChangesAction[] possibleResults;
    String message;

    if (!mergeAll) {
      possibleResults = new LocalChangesAction[]{shelve, inspect, continueMerge, cancel};
      message = message("dialog.message.merge.intersects.with.local.changes.prompt");
    }
    else {
      possibleResults = new LocalChangesAction[]{shelve, continueMerge, cancel};
      message = message("dialog.message.merge.potentially.intersects.with.local.changes.prompt");
    }

    int result =
      showDialog(message, myMergeContext.getMergeTitle(), map2Array(possibleResults, String.class, TO_STRING()), 0, getQuestionIcon());
    return result == -1 ? cancel : possibleResults[result];
  }
@NotNull
  @Override
  public LocalChangesAction selectLocalChangesAction(boolean mergeAll)