@Override
      public boolean iteration() {
        Pair<ModCommandAction, SmartPsiFileRange> pair = modCommands.get(fixNumber++);
        Segment range = pair.getSecond().getRange();
        if (range != null) {
          ModCommandWithContext contextAndCommand =
            ModCommandService.getInstance().chooseFileAndPerform(file, editor, pair.first, range.getStartOffset());
          if (contextAndCommand == null) return true;
          contextAndCommand.executeInBatch();
          psiDocumentManager.doPostponedOperationsAndUnblockDocument(document);
          psiDocumentManager.commitDocument(document);
        }
        return fixNumber == modCommands.size();
      }
@Override
      public boolean iteration()