sbool includeInMainLoaded_safe; static L includeInMainLoaded(L tok, S text) { L main = findMainClass(tok); if (main == null) { print(join(tok)); fail("no main class"); } int i = main.lastIndexOf("}"); main.set(i, "\n" + text + "\n}"); i += magicIndexOfSubList(tok, main); ret includeInMainLoaded_safe ? reTok(tok) : reTok(tok, i, i+1); }