reorderMap[j - leadingCollapsedElements] = previousIndices[j] - leadingCollapsedElements;
}
// prepare the next iteration: find the start of the next group
if(newGroupFound && i.hasNextBlack()) {
i.nextBlack();
groupStartSourceIndex = i.getIndex();
} else {
break;
}
}