void (final MyTree tree) { tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION); tree.setCellRenderer(new MyTreeCellRenderer(tree == myLeftTree)); tree.setRootVisible(false); tree.setShowsRootHandles(true); TreeUtil.installActions(tree); SmartExpander.installOn(tree); EditSourceOnDoubleClickHandler.install(tree); TreeUIHelper.getInstance().installTreeSpeedSearch(tree); PopupHandler.installPopupMenu(tree, createTreePopupActions(), "CyclicDependenciesPopup"); }