private boolean checkRebaseInProgress() {
    LOG.info("checkRebaseInProgress: checking if there is an unfinished rebase process...");
    Collection<VirtualFile> rebasingRoots = ContainerUtil.map(GitRebaseUtils.getRebasingRepositories(myProject), repo -> repo.getRoot());
    if (rebasingRoots.isEmpty()) {
      return false;
    }
    LOG.info("checkRebaseInProgress: roots with unfinished rebase: " + rebasingRoots);

    GitConflictResolver.Params params = new GitConflictResolver.Params(myProject);
    params.setErrorNotificationTitle(GitBundle.message("update.process.generic.error.title"));
    params.setMergeDescription(GitBundle.message("update.process.error.description.unfinished.rebase"));
    params.setErrorNotificationAdditionalDescription(GitBundle.message("update.process.error.additional.description.unfinished.rebase"));
    params.setReverse(true);
    return !new GitConflictResolver(myProject, rebasingRoots, params) {
      @Override
      protected boolean proceedIfNothingToMerge() {
        return new GitRebaser(myProject, myGit, myProgressIndicator).continueRebase(rebasingRoots);
      }

      @Override
      protected boolean proceedAfterAllMerged() {
        return new GitRebaser(myProject, myGit, myProgressIndicator).continueRebase(rebasingRoots);
      }
    }.merge();
  }
private boolean checkRebaseInProgress()