@Override
  public void actionPerformed(@NotNull AnActionEvent e) {
    if (myUndo) {
      myUndoManager.undo(myEditor);
    }
    else {
      myUndoManager.redo(myEditor);
    }
  }
@Override
  public void actionPerformed(@NotNull AnActionEvent e)