if (prevItemInNext == -1) {
if (prevItem instanceof VirtualText && nextItem instanceof VirtualText) {
nextItem.dom = prevItem.dom;
patches.add(new ReplaceText(prevItem, (VirtualText) nextItem));
} else {
patches.add(new ReplaceChild(context, prevItem, nextItem));
}
prevPosition++;
} else {
patches.add(new InsertChild(context, prevItem.dom, nextItem));
}