List distinctElements = list.stream().distinct().collect(Collectors.toList());
https://howtodoinjava.com/java8/java-stream-distinct-examples/