code: @SuppressWarnings("unchecked")
     public static <T, R> Supplier<Collector<T, ?, R>> toSupplierCollect(Supplier supplier) {
        return supplier;
     }
docs: This is a hack to allow for cast to work properly, since Java doesn't work as well with nested generics