static int indexOfAnySubList(L x, L... y) { int min = l(x); fOr (var l : y) min = min(min, smartIndexOfSubList(x, l)); ret min == l(x) ? -1 : min; }