code: public static <E> List<E> buildList(Iterable<E> iterable) {
          return StreamSupport.stream(iterable.spliterator(), false)
                  .collect(toList());
      }
docs: Build list list.
  
  @param <E>      the type parameter
  @param iterable the iterable
  @return the list