presto-main/src/main/java/io/prestosql/sql/analyzer/StatementAnalyzer.java/Visitor/isLateralRelation
class Visitor:        private boolean isLateralRelation(Relation node)
        {
            if (node instanceof AliasedRelation) {
                return isLateralRelation(((AliasedRelation) node).getRelation());
            }
            return node instanceof Unnest || node instanceof Lateral;
        }