presto-parser/src/main/java/io/prestosql/sql/util/AstUtils.java/AstUtils/nodeContains
class AstUtils:    public static boolean nodeContains(Node node, Node subNode)
    {
        requireNonNull(node, "node is null");
        requireNonNull(subNode, "subNode is null");

        return preOrder(node)
                .anyMatch(childNode -> childNode == subNode);
    }