protected final void tryRollback() {
    if (myRevertCommand == null) return;
    Document document = InjectedLanguageEditorUtil.getTopLevelEditor(myEditor).getDocument();
    PsiFile psiFile = Objects.requireNonNull(PsiDocumentManager.getInstance(myProject).getPsiFile(document));
    CommandProcessor.getInstance().executeCommand(myProject, () -> {
      ModCommandExecutor.getInstance().executeInBatch(ActionContext.from(null, psiFile), myRevertCommand);
    }, getCommandName(), null);
    myEditor.getCaretModel().moveToOffset(myOrigOffset);
  }
protected final void tryRollback()