void (@Nullable Consumer<? super List<CommittedChangeList>> incomingChangesConsumer) { myPendingUpdateCount--; if (myPendingUpdateCount == 0) { fireIncomingChangesUpdated(myNewIncomingChanges); if (incomingChangesConsumer != null) { incomingChangesConsumer.consume(new ArrayList<>(myNewIncomingChanges)); } myNewIncomingChanges.clear(); } }