The intention works if Use flying geese braces is checked in Editor | Code Style | Groovy | Wrapping and Braces | Braces placement.