@NotNull
  private List<RunAnythingItem> buildAllGroups(@NotNull RunAnythingSearchListModel model) {
    List<RunAnythingItem> items = new ArrayList<>();
    if (myPattern.trim().length() == 0) {
      RunAnythingGroup recentGroup =
        model.getGroups().stream().filter(group -> group instanceof RunAnythingRecentGroup).findFirst().orElse(null);
      assert recentGroup != null;
      recentGroup.collectItems(myDataContext, items, myPattern);
    }
    else {
      buildCompletionGroups(myDataContext, items, model);
    }

    return items;
  }
@NotNull
  private List<RunAnythingItem> buildAllGroups(@NotNull RunAnythingSearchListModel model)