static bool tok_importsClassNamed(L tok, S className) { for (int i = 1; i < l(tok); i += 2) if (eq(tok.get(i), "import")) { int j = findEndOfStatement(tok, i); // index of ;+1 if (eq(get(tok, j-3), className)) ret true; i = j-1; } ret false; }