return new IntOperatorMatcherBuilder<CssRule>(new IntOperatorMatcherAdapter<CssRule>() {
@Override
public int valueOf(final CssRule matched) {
final List<CssSelector> selectorList = matched.getCssSelectors();
for (int i = selectorList.size() - 1; i >= 0; i--) {
CssSelector selector = selectorList.get(i);
if (selector.getType() == selectorType) {
return i;
}
}
return -1;
}