}
@Override
public boolean match(ASTNode node, ISourceModule sourceModule, Path filePath) {
if(node instanceof NamedReference) {
NamedReference ref = (NamedReference) node;
// don't match qualifieds, the match will be made in its children
if(node instanceof CommonQualifiedReference)
return true;
if(!ref.canMatch(defunit.getName()))
return true;
IModuleResolver mr = DToolClient_Bad.getResolverFor(filePath);
Collection<INamedElement> defUnits = ref.findTargetDefElements(mr, false);
if(defUnits == null)
return true;
for (Iterator<INamedElement> iter = defUnits.iterator(); iter.hasNext();) {
INamedElement targetdefunit = iter.next();
if(defunit.equals(targetdefunit)) {