String (MouseEvent event) { final TreePath path = myTree.getPathForLocation(event.getX(), event.getY()); if (path == null) { return ""; } Object node = path.getLastPathComponent(); if ((!(node instanceof DefaultMutableTreeNode))) { return ""; } if (node instanceof TooltipNode) { String select = DvcsBundle.message("push.select.all.commit.details"); return ((TooltipNode)node).getTooltip() + "<p style='font-style:italic;color:gray;'>" + select + "</p>"; //NON-NLS } return ""; }