presto-parser/src/main/java/io/prestosql/sql/parser/ErrorHandler.java/Analyzer/getTokenNames
class Analyzer:        private Set<String> getTokenNames(IntervalSet tokens)
        {
            Set<String> names = new HashSet<>();
            for (int i = 0; i < tokens.size(); i++) {
                int token = tokens.get(i);
                if (token == Token.EOF) {
                    names.add("<EOF>");
                }
                else {
                    names.add(specialTokens.getOrDefault(token, vocabulary.getDisplayName(token)));
                }
            }

            return names;
        }