static boolean endsWithOneOf(S s, S... suffixes) { for (S x : suffixes) if (s.endsWith(x)) ret true; ret false; }