PsiReference (final GenericDomValue value, PsiElement resolveTo) { final XmlTagValue tagValue = value.getXmlTag().getValue(); final TextRange textRange = tagValue.getTextRange(); final String s = value.getStringValue(); assertNotNull(s); final int i = tagValue.getText().indexOf(s); return assertReference(value, resolveTo, textRange.getStartOffset() + i + s.length()); }