@Override
  protected void setDone(boolean done) {
    super.setDone(done);

    if (myResetBulkUpdateState) {
      DocumentEx document = getAffectedDocument(myModel);
      if (document != null) {
        document.setInBulkUpdate(false);
        myResetBulkUpdateState = false;
      }
    }

    if (done) {
      myModel.commitChanges();
    }
  }
@Override
  protected void setDone(boolean done)