docs: @SuppressWarnings("deprecation")
      public static LocalTime fromDateFields(Date date) {
          if (date == null) {
              throw new IllegalArgumentException("The date must not be null");
          }
          return new LocalTime(
              date.getHours(),
              date.getMinutes(),
              date.getSeconds(),
              (((int) (date.getTime() % 1000)) + 1000) % 1000
          );
      }