static @NotNull Formats getSystemFormats() {
    var locale = getDynamicLocale();

    if (locale == null) {
      try {
        if (SystemInfo.isMac && JnaLoader.isLoaded()) return getMacFormats();
        if (SystemInfo.isWindows && JnaLoader.isLoaded()) return getWindowsFormats();
      }
      catch (Throwable t) {
        LOG.error(t);
      }

      locale = requireNonNullElse(getUnixLocale(), Locale.getDefault(Locale.Category.FORMAT));
    }

    return new Formats(
      DateTimeFormatter.ofLocalizedDate(FormatStyle.SHORT).withLocale(locale),
      DateTimeFormatter.ofLocalizedTime(FormatStyle.SHORT).withLocale(locale),
      DateTimeFormatter.ofLocalizedTime(FormatStyle.MEDIUM).withLocale(locale),
      DateTimeFormatter.ofLocalizedDateTime(FormatStyle.SHORT, FormatStyle.SHORT).withLocale(locale),
      DateFormat.getDateInstance(DateFormat.SHORT, locale),
      DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, locale));
  }
static @NotNull Formats getSystemFormats()