/** Returns a stream of collections of batchSize or smaller. */ public static <T> Stream<Collection<T>> of(Collection<T> collection, int batchSize) { return of(collection.spliterator(), batchSize); }