presto-parser/src/main/java/io/prestosql/sql/parser/ErrorHandler.java/Analyzer/record
class Analyzer:        private void record(int tokenIndex, Set<String> labels)
        {
            if (tokenIndex >= furthestTokenIndex) {
                if (tokenIndex > furthestTokenIndex) {
                    candidates.clear();
                    furthestTokenIndex = tokenIndex;
                }

                candidates.addAll(labels);
            }
        }