Untested attempt to convert some sets into lists where sets were
unnecessary to boost performance. However, there may be silent errors,
for when .equals() is comparing a List and a Set, no compiler error is
shown but the value will almost certainly be false.