presto-main/src/main/java/io/prestosql/sql/analyzer/Scope.java/Scope/getLocalParent
class Scope:    public Optional<Scope> getLocalParent()
    {
        if (!queryBoundary) {
            return parent;
        }

        return Optional.empty();
    }