private static Unit cancelCherryPick(@NotNull GitRepository repository, boolean autoCommit) {
    if (autoCommit) { // `git cherry-pick -n` doesn't create the CHERRY_PICK_HEAD
      removeCherryPickHead(repository);
    }
    return Unit.INSTANCE;
  }
private static Unit cancelCherryPick(@NotNull GitRepository repository, boolean autoCommit)