code: private static Calendar toCalendar(Date self) {
          Calendar cal = Calendar.getInstance();
          cal.setTime(self);
          return cal;
      }
docs: /* duplicated with DateUtilExtensions.toCalendar() but we don't want modulkes to depend on one another