static bool startsWithOneOf(S s, S... l) { for (S x : l) if (startsWith(s, x)) ret true; ret false; } static bool startsWithOneOf(S s, Matches m, S... l) { for (S x : l) if (startsWith(s, x, m)) true; false; }