selector cur = s;
while (cur != null) {
for (simple_selector ss : cur.getSimpleselectors()) {
for (CssSelector subSel : ss.getSubSelectors()) {
if (subSel instanceof IdSelector) {
IdSelector check = (IdSelector) subSel;
if (check.getName().equals(((IdSelector) target).getName())) {
ITextRegion declarationRegion = locationInFileProvider.getFullTextRegion(subSel);
addOccurrenceAnnotation(DECLARATION_ANNOTATION_TYPE, document, declarationRegion, m);
}
}
}