code: public <T extends Collection<R>, R> T nextCollection(@NonNull Supplier<T> supplier, @NonNull Class<R> elementType) throws IOException {
        return nextCollection(supplier, null, elementType);
     }
docs: Reads the next array as a collection.
  
  @param <T>         the collection type
  @param <R>         the component type of the collection
  @param supplier    the supplier to create a new collection
  @param elementType The class of the collection component type
  @return the collection containing the items in the next array
  @throws IOException Something went wrong reading