@Override
    public void actionPerformed(@NotNull AnActionEvent e) {
      TreeModel treeModel = myTree.getModel();
      Object root = treeModel.getRoot();
      if (!(root instanceof CheckedTreeNode)) {
        return;
      }

      if (!myShowSelectedRowsOnly) {
        myTree.setNodeState((CheckedTreeNode)root, true);
      }
      else {
        myShowSelectedRowsOnly = false;
        reloadTree();
        myTree.setNodeState((CheckedTreeNode)root, true);
        myShowSelectedRowsOnly = true;
      }
    }
@Override
    public void actionPerformed(@NotNull AnActionEvent e)