MessageTreeNode (XDebuggerTree tree, XDebuggerTreeNode parent, final int remaining, @NotNull Runnable onClick) { String message = remaining == -1 ? XDebuggerBundle.message("node.text.ellipsis.0.unknown.more.nodes.double.click.to.show") : XDebuggerBundle.message("node.text.ellipsis.0.more.nodes.double.click.to.show", remaining); XDebuggerTreeNodeHyperlink link = new XDebuggerTreeNodeHyperlink(message) { @Override public void onClick(MouseEvent event) { onClick.run(); } }; return new MessageTreeNode(tree, parent, message, SimpleTextAttributes.GRAYED_ATTRIBUTES, null, true, link); }