presto-main/src/main/java/io/prestosql/sql/analyzer/Analysis.java/Analysis/tryGetScope
class Analysis:    public Optional<Scope> tryGetScope(Node node)
    {
        NodeRef<Node> key = NodeRef.of(node);
        if (scopes.containsKey(key)) {
            return Optional.of(scopes.get(key));
        }

        return Optional.empty();
    }