Use XPath instead.
Find the common ancestor of the two nodes in the given blueprint. The common ancestor is the deepest node containing both nodes.
Refer to blueprintQuery for more information on how to import and use this function.
The common ancestor, or null if the nodes are in separate trees.