@Override
  public void setSelected(@NotNull AnActionEvent e, boolean state) {
    Project project = e.getProject();
    if (project != null) {
      MemoryViewManager.getInstance().setAutoUpdate(state);
    }
  }
@Override
  public void setSelected(@NotNull AnActionEvent e, boolean state)