protected static Set<Exchange> createSet(List<Expression> expressions, boolean allowDuplicates, boolean reverse) {
if (expressions.size() == 1) {
return createSet(expressions.get(0), allowDuplicates, reverse);
}
return createSet(new ExpressionListComparator(expressions), allowDuplicates, reverse);
}