static L syncReplace(L l, A a, A b) { if (l == null) null; synchronized(collectionMutex(l)) { ret replace(l, a, b); } }