docs: public static LocalDate adjustToFirstDayOfWeek(LocalDate date, DayOfWeek firstDayOfWeek) {
          LocalDate newDate = date.with(DAY_OF_WEEK, firstDayOfWeek.getValue());
          if (newDate.isAfter(date)) {
              newDate = newDate.minusWeeks(1);
          }
  
          return newDate;
      }