void (@NotNull Component owner, JBPopup master) { if (owner instanceof JComponent) { HelpTooltip instance = (HelpTooltip)((JComponent)owner).getClientProperty(TOOLTIP_PROPERTY); if (instance != null && instance.myPopup != master) { instance.masterPopupOpenCondition = () -> master == null || !master.isVisible(); } } }