Changing Set<List<Symbol>> to List<List<Symbol>> to deal with multiple null lists