void (@NotNull DataContext dataContext, @NotNull List<RunAnythingItem> items, @NotNull RunAnythingSearchListModel model) { if (DumbService.getInstance(myProject).isDumb()) { return; } model.getGroups().stream() .filter(group -> group instanceof RunAnythingCompletionGroup || group instanceof RunAnythingGeneralGroup || group instanceof RunAnythingRecentGroup) .filter(group -> RunAnythingCache.getInstance(myProject).isGroupVisible(group)) .forEach(group -> { group.collectItems(dataContext, items, myPattern); }); }