int index = prev.indexOf(nextItem);
if (index == -1) {
patches.add(new InsertChild(context, null, nextItem));
} else {
patches.add(new MoveChild(context, prev.items.get(index).dom));
}
}
} else {
if (nextSize <= nextPosition) {
// all next items are scanned, but prev items are remaining