Most editors have code folding. I've noticed this helps when there are comments or it's easy to figure out the branching or what not.
However, what you're asking for is a design style that's hard to implement I think without language tooling (for example identifying effectful methods).
However, what you're asking for is a design style that's hard to implement I think without language tooling (for example identifying effectful methods).