private static @NotNull UndoManagerImpl getUndoManager(@NotNull ComponentManager manager) {
      return (UndoManagerImpl)manager.getService(UndoManager.class);
    }
private static @NotNull UndoManagerImpl getUndoManager(@NotNull ComponentManager manager)