} else if (node instanceof MethodDescriptorNode) {
Range parentRange = getRange((StructureNode)node.getParent());
MethodDescriptorNode mafNode = (MethodDescriptorNode) node;
Method method = mafNode.getMethod();
Range afRange = method.getOffsetMap().get(Method.OffsetTag.METHOD_DESCRIPTOR);
return afRange.offsetBy(parentRange.getOffset());
} else if (node instanceof AttributeNode) {
AttributeNode aNode = (AttributeNode) node;
AttributesNode an = (AttributesNode) aNode.getParent();
Range range = getRange(an);
Map<Object, Range> map = an.getAttributesObject().getOffsetMap(range.getOffset());