Collapse/Reveal all children on right click in overview panel

With many, repetitive elements in the overview tree, it would be nice to quickly collapse all (and possibly reveal all) either in a right click menu or dedicated buttons. We could go a step further and make it context sensitive on right click, ie. collapse all with the selected parent. Or even collapse all except those within the parent I have selected. I swear I've seen this before, but can't remember what program.