PsiReference (final GenericAttributeValue value) { final XmlAttributeValue attributeValue = value.getXmlAttributeValue(); assertNotNull(attributeValue); final PsiReference reference = attributeValue.getContainingFile().findReferenceAt(attributeValue.getTextRange().getStartOffset() + 1); assertNotNull(reference); assertEquals(attributeValue, reference.resolve()); return reference; }