@Override
  public void update(@NotNull AnActionEvent e) {
    super.update(e);
    String layoutName = getLayoutNameSupplier().invoke();
    if (ActionPlaces.MAIN_MENU.equals(e.getPlace())) {
      // In the main menu the main action is hidden, instead a child to the current layout submenu is added.
      e.getPresentation().setVisible(false);
    }
    e.getPresentation().setEnabled(!ToolWindowDefaultLayoutManager.FACTORY_DEFAULT_LAYOUT_NAME.equals(layoutName));
    e.getPresentation().setDescription(ActionsBundle.message("action.StoreDefaultLayout.named.description", layoutName));
  }
@Override
  public void update(@NotNull AnActionEvent e)