void (@NotNull Component owner) { if (owner instanceof JComponent component) { HelpTooltip instance = (HelpTooltip)component.getClientProperty(TOOLTIP_PROPERTY); if (instance != null) { instance.hideAndDispose(component); } } }