static void syncMoveElementRight(L l, A a) { if (l == null) ret; synchronized(l) { int i = indexOf(l, a); if (i+1 < l(l)) swapListElements(l, i, i+1); } }