static int smartIndexOfAfter(S a, S b) { int i = indexOf(a, b); ret i >= 0 ? i+l(b) : l(a); }