code: public static List<Long> lengths(final Iterable<Range<Long>> ranges) {
          checkNotNull(ranges);
          List<Long> lengths = new ArrayList<Long>();
          for (Range<Long> range : ranges) {
              lengths.add(length(range));
          }
          return lengths;
      }
docs: Return the lengths of the specified ranges.
  
  @param ranges ranges, must not be null, must not contain any null ranges, and all ranges must be [closed, open)
  @return the lengths of the specified ranges