code: Collection<T> getAllListeners() {
          final Collection<T> toReturn = new ArrayList<>();
          for (ListenerHolder<T> listener : listeners) {
              toReturn.add(listener.delegate);
          }
          return toReturn;
      }
docs: /*Visible for testing