static int findListInsertionPoint(O comparator, L l, A a) { int i = Collections.binarySearch(l, a, makeComparator(comparator)); ret i >= 0 ? i : -i-1; }