Is there a convenient way to "collapse" the view of multiple, possibly nested, collections in the outliner? In an Add-On I'm working on, I procedurally generate a modest-to-large number of collections, and often end up with an outliner looks something like this:

I then often find myself tediously clicking the &quot;collapse&quot; arrow one-by-one on each collection, until they're all collapsed, to clean-up my view before doing further work.
Is there a fast way to do this kind of multi-collection outliner-view collapsing? Either a native / built-in or Python solution would be fine.
Hover your mouse in the outliner and hit Shift + A to expand everything, do it again to collapse everything.