@Override
  public void setSelected(@NotNull AnActionEvent e, boolean state) {
    if (state) {
      myPanel.setCurrentTab(myTab);
    }
    else {
      ApplicationManager.getApplication().invokeLater(() -> updateState());
    }
  }
@Override
  public void setSelected(@NotNull AnActionEvent e, boolean state)