@Override
    public void setSelected(final @NotNull AnActionEvent event, final boolean flag) {
      if (myViewMap.size() > 1) {
        List<String> names = new ArrayList<>(myViewMap.keySet());
        String viewName = flag ? names.get(0) : names.get(1);
        showView(viewName, true);
        ApplicationManager.getApplication().invokeLater(() -> update(event));
      }
    }
@Override
    public void setSelected(final @NotNull AnActionEvent event, final boolean flag)