code: public static <R extends Collection<E>, E> R all(Iterable<E> iterable, R collection) {
          dbc.precondition(iterable != null, "cannot call all with a null iterable");
          dbc.precondition(collection != null, "cannot call all with a null collection");
          final Function<Iterator<E>, R> consumer = new ConsumeIntoCollection<>(new ConstantSupplier<R>(collection));
          return consumer.apply(iterable.iterator());
      }
docs: Yields all elements of the iterator (in the provided collection).
  
  @param <R> the returned collection type
  @param <E> the collection element type
  @param iterable the iterable that will be consumed
  @param collection the collection where the iterator is consumed
  @return the collection filled with iterator values