public void refilter() {
    if (myUpdating) return;
    List<T> newData = new ArrayList<>();
    Collection<T> elements = getElementsToFilter();
    for (T elt : elements) {
      if (passElement(elt)) {
        newData.add(elt);
      }
    }
    
    commit(newData);
  }
public void refilter()