protected void initTree() { if (myWasTreeInitialized) return; myWasTreeInitialized = true; super.initTree(); new TreeSpeedSearch( myTree, new Convertor<TreePath, String>() { public String convert(final TreePath treePath) { return ((MyNode) treePath.getLastPathComponent()).getDisplayName(); } }, true); ToolTipManager.sharedInstance().registerComponent(myTree); myTree.setCellRenderer(new ProjectStructureElementRenderer(myContext)); }