}
private List<Matcher> getItemsMatchers(ItemsMode itemsMode, Matcher matcher, Matcher... matchers) {
List<Matcher> list = new ArrayList<Matcher>();
ListEveryItemMatcher m1 = new ListEveryItemMatcher(matcher, itemsMode);
list.add(m1);
if (matchers == null || matchers.length == 0) {
return list;
}
for (Matcher m : matchers) {
ListEveryItemMatcher m2 = new ListEveryItemMatcher(m, itemsMode);
list.add(m2);
}
return list;
}