private void beforeCommitHandler() {
    ThreadingAssertions.assertEventDispatchThread();
    actionsWhenAllDocumentsAreCommitted.put(PERFORM_ALWAYS_KEY, EmptyRunnable.getInstance()); // to prevent listeners from registering new actions during firing
  }
private void beforeCommitHandler()