SETab (List<? extends SearchEverywhereContributor<?>> contributors, @NotNull Runnable onChanged) { String actionText = IdeUICustomization.getInstance().projectMessage("checkbox.include.non.project.items"); PersistentSearchEverywhereContributorFilter<String> filter = createContributorsFilter(contributors); List<AnAction> actions = Arrays.asList(new CheckBoxSearchEverywhereToggleAction(actionText) { final SearchEverywhereManagerImpl seManager = (SearchEverywhereManagerImpl)SearchEverywhereManager.getInstance(myProject); @Override public boolean isEverywhere() { return seManager.isEverywhere(); } @Override public void setEverywhere(boolean state) { if (isEverywhere() == state) return; seManager.setEverywhere(state); myTabs.forEach(tab -> { if (tab.everywhereAction != null) tab.everywhereAction.setEverywhere(state); }); onChanged.run(); } }, new PreviewAction(), new SearchEverywhereFiltersAction<>(filter, onChanged, new ContributorFilterCollector())); return new SETab(SearchEverywhereManagerImpl.ALL_CONTRIBUTORS_GROUP_ID, IdeBundle.message("searcheverywhere.allelements.tab.name"), contributors, actions, filter); }