private void writeRemoveAll(@NotNull List<E> removed) {
Excerpt excerpt = getExcerpt(maxMessageSize * removed.size(), removeAll);
long eventId = excerpt.index();
writeList(excerpt, removed);
excerpt.finish();
if (!notifyOff && !listeners.isEmpty()) {
for (int i = 0; i < listeners.size(); i++) {
CollectionListener<E> listener = listeners.get(i);
listener.eventStart(eventId, name);
for (int j = 0; j < removed.size(); j++) {