presto-main/src/main/java/io/prestosql/sql/analyzer/ScopeReferenceExtractor.java/ScopeReferenceExtractor/isFieldFromScope
class ScopeReferenceExtractor:    public static boolean isFieldFromScope(FieldId fieldId, Scope scope)
    {
        return Objects.equals(fieldId.getRelationId(), scope.getRelationId());
    }