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 "collapse" 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.