void () { final MyElement element = createElement("<a><name>abc</name></a>"); final DomTarget target = DomTarget.getTarget(element); assertNotNull(target); final XmlTag tag = element.getName().getXmlTag(); assertNull(tag.getContainingFile().findReferenceAt(tag.getValue().getTextRange().getStartOffset())); }