svoid tok_beginPeriod(LS tok) { for (i : jfind_all_reversed(tok, "begin.", (_tok, nIdx) -> startsWithSpaceEtc(_get(tok, nIdx+4)))) { int iClosing = tok_findEndOfBlock(tok, i)-1; tokPrepend_reTok(tok, iClosing, "}\n"); tokReplace_reTok(tok, i, i+3, "public void run aka get() {"); } }