newMappingSequence.addAll(currentMappingSequence);
newMappingSequence.add(lastMapping);
resultList.add(newMappingSequence);
} else { // otherwise we have to create all possible combinations of
// the longer and shorter remaining pattern:
TextRulerRuleItem firstItem = shorterPattern.get(0);
// combine with 0, 0/1, ... 0/1/2/.../windowSize-1
for (int maxi = 0; maxi < windowSize; maxi++) {
RapierPatternItemMapping newMapping = new RapierPatternItemMapping();
newMapping.shorterPattern.add(firstItem);
for (int li = 0; li <= maxi; li++)