void (CommanderPanel activePanel) { ToolWindow toolWindow = ToolWindowManager.getInstance(project).getToolWindow(ToolWindowId.COMMANDER); if (toolWindow != null) { AbstractTreeNode<?> node = activePanel.getSelectedNode(); if (node instanceof ProjectViewNode) { toolWindow.setTitle(ObjectUtils.notNull(((ProjectViewNode<?>)node).getTitle(), "")); } } }