distinct method Null safety

List<E> distinct()

Distinct. Creates a List containing distinct elements.