Replaces chained conversions of a sequence to Set and back with .distinct call.

Before:

seq.toSet.toSeq
list.toSet.to[List]

After:
seq.distinct
list.distinct