void () { SmartExpander.installOn(myTree); SelectionSaver.installOn(myTree); createTreeModel(); myTree.setCellRenderer(new UpdateTreeCellRenderer()); TreeUtil.installActions(myTree); TreeSpeedSearch.installOn(myTree, true, path -> { Object last = path.getLastPathComponent(); if (last instanceof AbstractTreeNode) { return ((AbstractTreeNode)last).getText(); } return TreeSpeedSearch.NODE_PRESENTATION_FUNCTION.apply(path); }); PopupHandler.installPopupMenu(myTree, "UpdateActionGroup", ActionPlaces.UPDATE_POPUP); EditSourceOnDoubleClickHandler.install(myTree); EditSourceOnEnterKeyHandler.install(myTree); myTree.setSelectionRow(0); }