https://www.cnblogs.com/lucky-jun/p/15029505.html
import static java.util.stream.Collectors.collectingAndThen;
import static java.util.stream.Collectors.toCollection;
List personList =personList.stream().collect(collectingAndThen(
toCollection(() -> new TreeSet(Comparator.comparing(Person::getName))), ArrayList::new));