docs: public static YearMonth fromCalendarFields(Calendar calendar) {
          if (calendar == null) {
              throw new IllegalArgumentException("The calendar must not be null");
          }
          return new YearMonth(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH) + 1);
      }