public synchronized void setFilterItems(Collection<? extends T> filterItems) {
    // get and set method are called from different threads
    myFilterItems = new HashSet<>(filterItems);
  }
public synchronized void setFilterItems(Collection<? extends T> filterItems)