presto-main/src/main/java/io/prestosql/sql/analyzer/ScopeReferenceExtractor.java/ScopeReferenceExtractor/isReferenceToScope
class ScopeReferenceExtractor:    private static boolean isReferenceToScope(Expression node, Scope scope, Map<NodeRef<Expression>, FieldId> columnReferences)
    {
        FieldId fieldId = columnReferences.get(NodeRef.of(node));
        requireNonNull(fieldId, () -> "No FieldId for " + node);
        return isFieldFromScope(fieldId, scope);
    }