default @NotNull List<Item> search(@NotNull String pattern,
                            @NotNull ProgressIndicator progressIndicator) {
    List<Item> res = new ArrayList<>();
    fetchElements(pattern, progressIndicator, o -> res.add(o));
    return res;
  }
default @NotNull List<Item> search(@NotNull String pattern,
                            @NotNull ProgressIndicator progressIndicator)