private static @NotNull Hash getRebasingBranchHash(@NotNull GitRepository repository) throws VcsException {
    return readHashFromFile(repository.getProject(), repository.getRoot(), "orig-head");
  }
private static @NotNull Hash getRebasingBranchHash(@NotNull GitRepository repository)