The lightweight Mikado method opens up a structured way to make significant changes even to complex legacy code.
Please note, due to very ad-hoc nature of AWK syntax (namely some inherent ambiguities in its grammar) the implemented IntelliJ IDEA AWK parser has some minor limitations.