String (MouseEvent event) { // shortcut should not be shown when there is no link if (!myHaveLink && myLinkShortcutSupplier != null) { Supplier<String> supplier = ClientProperty.get(myTree, HelpTooltipManager.SHORTCUT_PROPERTY); if (supplier == myLinkShortcutSupplier) { ClientProperty.remove(myTree, HelpTooltipManager.SHORTCUT_PROPERTY); myLinkShortcutSupplier = null; } } String toolTip = myLink.getToolTipText(); if (isInLinkArea(event.getX()) && toolTip != null) { return toolTip; } return super.getToolTipText(event); }