Expand all the collapsed fragments in the file up to the specified nesting level

Fold Selection / Remove region

Ctrl+Period

Collapse the selected fragment and create a custom folding region for it to make it "foldable" / Expand the current fragment and remove the corresponding custom folding region to make the fragment "unfoldable"