}
}
i++;
}
RuleMatchFilter maxFilter = new RuleWithMaxFilter();
List<RuleMatch> filteredMatches = maxFilter.filter(ruleMatches);
return filteredMatches.toArray(new RuleMatch[filteredMatches.size()]);
}
private RuleMatch createRuleMatch(final List<Integer> tokenPositions,
final AnalyzedTokenReadings[] tokens, final int firstMatchToken,