private static Treenode search ( Iterable < Treenode > root , String text , ITreenodeSearch search ) { for ( Treenode node : root ) { if ( search . isMatch ( node , text ) ) { return node ; } } return null ; }
Search the tree for a tree node whose label contains the specified text .