public static boolean isReverseRoot(@NotNull GitRepository repository) {
    if (Registry.is("git.do.not.swap.merge.conflict.sides")) return false;
    return repository.getState().equals(GitRepository.State.REBASING);
  }
public static boolean isReverseRoot(@NotNull GitRepository repository)