code: public static <DR extends DateRange<DT>, DT> DR findDateRange(
              ReadableInstant instant, Collection<DR> dateRanges) {
          if (dateRanges.isEmpty()) {
              return null;
          }
  
          for (final DR dateRange : dateRanges) {
              if (dateRange.compareTo(instant) == 0) {
                  return dateRange;
              }
          }
  
          return null;
      }
docs: Find the {@link DateRange} that contains the specified instant. The first DateRange which
  contains the instant is returned, null is returned if no range contains the instant.
  
  @param instant The instant to check
  @param dateRanges The date ranges to check
  @return The {@link DateRange} that contains the instant, null if no date range contains the
  instant