@NotNull
    private List<String> filteredHistory(Predicate<? super HistoryItem> predicate) {
      return historyList.stream()
        .filter(predicate)
        .map(item -> item.searchText())
        .collect(distinctCollector);
    }
@NotNull
    private List<String> filteredHistory(Predicate<? super HistoryItem> predicate)