JComponent (@NotNull Presentation presentation, @NotNull String place) { return new ActionButton(this, presentation, place, () -> getMinimumSize(place)) { @Override protected void updateToolTipText() { String shortcutText = getShortcut(); String classesTabName = String.join("/",GotoClassPresentationUpdater.getActionTitlePluralized()); if (Registry.is("ide.helptooltip.enabled")) { HelpTooltip.dispose(this); new HelpTooltip() .setTitle(myPresentation.getText()) .setShortcut(shortcutText) .setDescription(IdeBundle.message("search.everywhere.action.tooltip.description.text", classesTabName)) .installOn(this); } else { setToolTipText(IdeBundle.message("search.everywhere.action.tooltip.text", shortcutText, classesTabName)); } } }; }