}
List<RuleElement> ruleElements = element.getContainer().getRuleElements();
for (Integer each : indexes) {
if (each > 0 && each <= ruleElements.size()) {
Type type = getRandomType(stream);
RuleElement ruleElement = ruleElements.get(each - 1);
List<AnnotationFS> matchedAnnotationsOf = match.getMatchedAnnotationsOf(ruleElement);
for (AnnotationFS eachMatched : matchedAnnotationsOf) {
AnnotationFS newAFS = stream.getCas().createAnnotation(type, eachMatched.getBegin(),
eachMatched.getEnd());
stream.addAnnotation(newAFS, true, match);