List list = list.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet(Comparator.
* Implementations of {@link Collector} that implement various useful reduction。