void () { String text = myPresentation.getText(); String description = myPresentation.getDescription(); if (Registry.is("ide.helptooltip.enabled")) { HelpTooltip ht = myPresentation.getClientProperty(CUSTOM_HELP_TOOLTIP); if ((Strings.isNotEmpty(text) || Strings.isNotEmpty(description)) && ht == null) { ht = new HelpTooltip().setTitle(text).setShortcut(getShortcutText()); if (myAction instanceof TooltipLinkProvider) { TooltipLinkProvider.TooltipLink link = ((TooltipLinkProvider)myAction).getTooltipLink(this); if (link != null) { ht.setLink(link.tooltip, link.action); } } String id = ActionManager.getInstance().getId(myAction); if (!Objects.equals(text, description) && ((id != null && WHITE_LIST.contains(id)) || myAction instanceof TooltipDescriptionProvider)) { ht.setDescription(description); } } if (ht != null) { ht.installOn(this); } } else { HelpTooltip.dispose(this); setToolTipText(text == null ? description : text); } }