code: public static <T> Collector<T, ?, ArrayList<T>> toArrayList() {
      return java.util.stream.Collectors.toCollection(ArrayList::new);
    }
docs: Delegates to {@link java.util.stream.Collectors#toCollection(Supplier)}.