@Override
  public void selectionChangedTo(boolean selected) {
    if (selected) {
      myTreeModel.setComparator(createComparator());
      updatePreview();

      ToolWindow window = ProblemsView.getToolWindow(getProject());
      if (window instanceof ToolWindowEx) {
        ActionGroup group = (ActionGroup)ActionManager.getInstance().getAction("ProblemsView.ToolWindow.SecondaryActions");
        window.setAdditionalGearActions(group);
      }
    }
    visibilityChangedTo(selected);
  }
@Override
  public void selectionChangedTo(boolean selected)