docs: private int getNextLastDayOfWeekInMonth(int day, int lastDay, int dayOfWeek)
      {
          for (;;)
          {
              if (lastDay - day < 7 && contains(lastDaysOfWeekInMonth, dayOfWeek))
              {
                  return day;
              }
  
              day++;
              if (day > lastDay)
              {
                  return ADVANCE_TO_NEXT_MONTH;
              }
  
              dayOfWeek = (dayOfWeek + 1) % 7;
          }
      }