void (@NotNull AnAction action, @NotNull AnActionEvent event) { if (action instanceof HintManagerImpl.ActionToIgnore) { return; } AbstractPopup currentHint = getInstance().getCurrentHint(); if (currentHint != null) { Component contextComponent = event.getData(PlatformCoreDataKeys.CONTEXT_COMPONENT); JBPopup contextPopup = PopupUtil.getPopupContainerFor(contextComponent); if (contextPopup == currentHint) { return; } } getInstance().cancelProcessingAndCloseHint(); }