static A assertEqualsOneOf(A x, A... l) { fOr (A y : l) if (eq(x, y)) ret x; fail(x + " not found in " + asList(l)); }