@Override
    public boolean isSelected(@NotNull AnActionEvent event) {
      String currentType = event.getUpdateSession().compute(
        this, "getCurrentViewType", ActionUpdateThread.EDT, () -> getCurrentViewType());
      return myTypeName.equals(currentType);
    }
@Override
    public boolean isSelected(@NotNull AnActionEvent event)