XDebuggerTreeNode (@Nullable Icon icon, @Nullable @Nls String text) { if (isLeaf()) { setLeaf(false); } myTree.expandPath(getPath()); MessageTreeNode node = new MessageTreeNode(myTree, this, true); node.setIcon(icon); if (!StringUtil.isEmpty(text)) { node.getText().append(text, SimpleTextAttributes.REGULAR_ATTRIBUTES); } myTemporaryEditorNode = node; myCachedAllChildren = null; fireNodesInserted(Collections.singleton(node)); return node; }