code: public void removeAll(ListenerFilter filter) {
          synchronized (listeners) {
              removeFilteredListenersFromSet(filter, listeners);
          }
          synchronized (weakListeners) {
              removeFilteredListenersFromSet(filter, weakListeners);
          }
      }
docs: Removes all {@link org.vaadin.spring.events.internal.ListenerCollection.Listener}s that pass the specified filter
  and that were previously added by
  {@link #add(org.vaadin.spring.events.internal.ListenerCollection.Listener)}.
  
  @param filter the filter that specifies which listeners to remove, never {@code null}.