private static DateTimeConversionType getDateTimeConversionType(char conversion) {
    return switch (conversion) {
      case 'H', 'I', 'k', 'l', 'M', 'S', 'L', 'N', 'p', 'R', 'T', 'r' -> DateTimeConversionType.TIME;
      case 'z', 'Z' -> DateTimeConversionType.ZONE;
      case 's', 'Q', 'c' -> DateTimeConversionType.ZONED_DATE_TIME;
      case 'B', 'b', 'h', 'A', 'a', 'C', 'Y', 'y', 'j', 'm', 'd', 'e', 'D', 'F' -> DateTimeConversionType.DATE;
      default -> DateTimeConversionType.UNKNOWN;
    };
  }
private static DateTimeConversionType getDateTimeConversionType(char conversion)