private @NotNull GitRebaseCommandResult callRebase(@NotNull GitRepository repository,
                                                     @Nullable GitRebaseResumeMode mode,
                                                     GitLineHandlerListener @NotNull ... listeners) {
    if (mode == null) {
      GitRebaseParams params = Objects.requireNonNull(myRebaseSpec.getParams());
      return myGit.rebase(repository, params, listeners);
    }
    else if (mode == GitRebaseResumeMode.SKIP) {
      return myGit.rebaseSkip(repository, listeners);
    }
    else {
      LOG.assertTrue(mode == GitRebaseResumeMode.CONTINUE, "Unexpected rebase mode: " + mode);
      return myGit.rebaseContinue(repository, listeners);
    }
  }
private @NotNull GitRebaseCommandResult callRebase(@NotNull GitRepository repository,
                                                     @Nullable GitRebaseResumeMode mode,
                                                     GitLineHandlerListener @NotNull ... listeners)