private static @NotNull UpdateMethod convertUpdateMethodFromDialogExitCode(PushRejectedExitCode exitCode) {
    return switch (exitCode) {
      case MERGE -> UpdateMethod.MERGE;
      case REBASE -> UpdateMethod.REBASE;
      default -> throw new IllegalStateException("Unexpected exit code: " + exitCode);
    };
  }
private static @NotNull UpdateMethod convertUpdateMethodFromDialogExitCode(PushRejectedExitCode exitCode)