docs: @CheckForNull
    public static Date parseDateOrDateTime(@Nullable String stringDate) {
      if (stringDate == null) {
        return null;
      }
  
      OffsetDateTime odt = parseOffsetDateTimeQuietly(stringDate);
      if (odt != null) {
        return Date.from(odt.toInstant());
      }
  
      LocalDate ld = parseLocalDateQuietly(stringDate);
      checkArgument(ld != null, "Date '%s' cannot be parsed as either a date or date+time", stringDate);
  
      return Date.from(ld.atStartOfDay(ZoneId.systemDefault()).toInstant());
    }