void (TreeUIHelper helper) { final Function<TreePath, String> f = path -> { final SimpleNode node = getNodeFor(path); if (node instanceof PackagingElementNode) { return ((PackagingElementNode<?>)node).getElementPresentation().getSearchName(); } return ""; }; TreeSpeedSearch.installOn(this, true, f); }