@Override
  public int editCommits(@NotNull File file) {
    GitRebaseEditingResult result;
    try {
      boolean cancelled = !GitImplBase.loadFileAndShowInSimpleEditor(
        myProject,
        null,
        file,
        GitBundle.message("rebase.simple.editor.dialog.title"),
        CommonBundle.getOkButtonText()
      );
      result = cancelled ? GitRebaseEditingResult.UnstructuredEditorCancelled.INSTANCE : GitRebaseEditingResult.WasEdited.INSTANCE;
    }
    catch (Exception e) {
      LOG.error("Failed to edit git rebase file: " + file, e);
      result = new GitRebaseEditingResult.Failed(e);
    }

    myResult = result;
    return result.getExitCode();
  }
@Override
  public int editCommits(@NotNull File file)