protected @NotNull Collection<T> getElementsToFilter() {
    ArrayList<T> result = new ArrayList<>();
    for (int i = 0; i < myOriginalModel.getSize(); i++) {
      result.add(myOriginalModel.getElementAt(i));
    }
    return result;
  }
protected @NotNull Collection<T> getElementsToFilter()