List<ElementReference> references = candidate.getReferences();
if(references == null)
continue;
for(int index=references.size()-1; index>=0; index--) {
ElementReference ref = references.get(index);
if(ref.token.getAttribute().equals(ruleName)) {
mutator.replace(ref.token.getStartIndex(), ref.token.getEndIndex(), ruleContent);
}
}
}