void (@NotNull AnActionEvent e) { if (SwingUtilities.isDescendingFrom(e.getData(PlatformCoreDataKeys.CONTEXT_COMPONENT), header.fileMaskField) && header.fileMaskField.isPopupVisible()) { header.fileMaskField.hidePopup(); return; } if (myScopeUI.hideAllPopups()) { return; } if (myEnterAsOK) { myOkActionListener.actionPerformed(null); } else if (myHelper.isReplaceState()) { myReplaceSelectedButton.doClick(); } else { navigateToSelectedUsage(null); } }