For the cases that a Node is provided, we should still attempt to match based on the text that is contained within the node.
Created attachment 314156 [details] Patch
Comment on attachment 314156 [details] Patch r-, it sounds like you can do this in your specific subclass. I think thats probably preferable to altering the behavior for all TreeElements.