code: public static Treenode search(Treeview tree, String text) {
          return search(tree, text, defaultTreenodeSearch);
      }
docs: Search the tree for a tree item whose label contains the specified text.
  
  @param tree Tree to search.
  @param text Text to find.
  @return The first matching tree item, or null if none found.