InputSource is = new InputSource(new StringReader(css));
CSSStyleSheet stylesheet = parser.parseStyleSheet(is);
CSSRuleList list = stylesheet.getCssRules();
// ArrayList assists = new ArrayList();
for (int i = 0; i < list.getLength(); i++) {
CSSRule rule = list.item(i);
if (rule instanceof CSSStyleRule) {
CSSStyleRule styleRule = (CSSStyleRule) rule;
String selector = styleRule.getSelectorText();
SelectorList selectors = parser.parseSelectors(new InputSource(new StringReader(selector)));
for (int j = 0; j < selectors.getLength(); j++) {