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