List<Object> (@NotNull String pattern, boolean searchEverywhere, @Nullable PsiElement contextForSorting) { SearchEverywhereContributor<Object> contributor = createMockSymbolSearchEverywhereContributor(searchEverywhere); ArrayList<Object> results = new ArrayList<>(); contributor.fetchElements(pattern, new MockProgressIndicator(), new CommonProcessors.CollectProcessor<>(results)); return results; }