void (@NotNull String tabID, @NotNull AnActionEvent event, boolean useEditorSelection, boolean sendStatistics) { Project project = event.getProject(); SearchEverywhereManager seManager = SearchEverywhereManager.getInstance(project); if (seManager.isShown()) { if (tabID.equals(seManager.getSelectedTabID())) { seManager.toggleEverywhereFilter(); } else { seManager.setSelectedTabID(tabID); if (sendStatistics) { SearchEverywhereUsageTriggerCollector.TAB_SWITCHED.log(project, SearchEverywhereUsageTriggerCollector.CONTRIBUTOR_ID_FIELD.with(tabID), EventFields.InputEventByAnAction.with(event)); } } return; } if (sendStatistics) { SearchEverywhereUsageTriggerCollector.DIALOG_OPEN.log(project, tabID, event); } IdeEventQueue.getInstance().getPopupManager().closeAllPopups(false); String searchText = StringUtil.nullize(getInitialText(useEditorSelection, event).first); seManager.show(tabID, searchText, event); }