private static GitPushNativeResult.Type parseType(String flag) {
    return switch (flag.charAt(0)) {
      case ' ' -> GitPushNativeResult.Type.SUCCESS;
      case '+' -> GitPushNativeResult.Type.FORCED_UPDATE;
      case '-' -> GitPushNativeResult.Type.DELETED;
      case '*' -> GitPushNativeResult.Type.NEW_REF;
      case '!' -> GitPushNativeResult.Type.REJECTED;
      case '=' -> GitPushNativeResult.Type.UP_TO_DATE;
      default -> null;
    };
  }
private static GitPushNativeResult.Type parseType(String flag)