static int indexOfAnySubstring(S s, S... strings) { for (int i = 0; i <= l(s); i++) for (S b : strings) if (substringAtIs(s, i, b)) ret i; ret -1; }