List
toList()
Set
toSet()
Accumulates the elements of stream into a new List.
java.util.List
Accumulates the elements of stream into a new Set.
java.util.Set