public void performModifications(FormattingModel model, boolean sequentially) {
    myStateProcessor.setNextState(new ApplyChangesState(model, myWrapState, myProgressCallback));

    if (sequentially) {
      return;
    }

    doIterationsSynchronously();
  }
public void performModifications(FormattingModel model, boolean sequentially)