@Override
  public void registerUndoableAction(TemplateState state, Project project, Document document) {
    MyBasicUndoableAction undoableAction = new MyBasicUndoableAction(state, project, document);
    UndoManager.getInstance(project).undoableActionPerformed(undoableAction);
    Disposer.register(state, undoableAction);
  }
@Override
  public void registerUndoableAction(TemplateState state, Project project, Document document)