code: public static Set<Calendar> toCalendarSet(final Set<Date> dates) {
          return dates.stream().map(Utils::getCal).collect(Collectors.toSet());
      }
docs: Converts a Set of Date objects to a Set of Calendar objects.
  
  @param dates
  @return the converted Set&lt;Calendar&gt;