static L ctxActions(S body) { L lines = lines(body); int i = 0; new L out; while (i < l(lines)) { Pair p = ctxAction(lines, i); if (p == null) break; out.add(p.a); i = p.b+1; } ret out; }