private void doRebaseCurrentBranch(@NotNull ProgressIndicator indicator, @NotNull String onto) {
      VirtualFile root = myRepository.getRoot();

      GitUpdateResult result = new GitRebaser(myProject, myGit, indicator).rebase(root, Collections.singletonList(onto));
      myRepository.update();

      if (result == GitUpdateResult.NOTHING_TO_UPDATE ||
          result == GitUpdateResult.SUCCESS ||
          result == GitUpdateResult.SUCCESS_WITH_RESOLVED_CONFLICTS) {
        root.refresh(false, true);
        GithubNotifications.showInfo(myProject,
                                     GithubNotificationIdsHolder.REBASE_SUCCESS,
                                     GithubBundle.message("rebase.process.success"),
                                     "");
      }
    }
private void doRebaseCurrentBranch(@NotNull ProgressIndicator indicator, @NotNull String onto)