void ignoreCurrentDocumentChange() {
    if (CommandProcessor.getInstance().getCurrentCommand() == null) {
      return;
    }

    myConnection.subscribe(CommandListener.TOPIC, new CommandListener() {
      boolean insideCommand = true;
      @Override
      public void commandFinished(@NotNull CommandEvent event) {
        if (insideCommand) {
          insideCommand = false;
          myStartDocStamp = docStamp();
          myCaretOffsets = caretOffsets();
        }
      }
    });
  }
void ignoreCurrentDocumentChange()