private boolean mayRunActionsWhenAllCommitted() {
    ThreadingAssertions.assertEventDispatchThread();
    return !isCommitInProgress() &&
           !actionsWhenAllDocumentsAreCommitted.isEmpty() &&
           !hasEventSystemEnabledUncommittedDocuments();
  }
private boolean mayRunActionsWhenAllCommitted()