IModelElement member = (IModelElement) match.getElement();
ISourceModule module = (ISourceModule) member.getAncestor(IModelElement.SOURCE_MODULE);
SimpleReference ref = new SimpleReference(match.getOffset(), match.getOffset()
+ match.getLength(), "");
try {
IModelElement[] e = module.codeSelect(match.getOffset(), 1);
for (int j = 0; j < e.length; ++j) {
if (e[j].equals(parent)) {
elements.put(ref, member);
}
}