void () { final MyElement element = createElement("<a boolean-attribute=\"true\"/>"); final PsiReference reference = getReference(element.getBooleanAttribute()); assertVariants(reference, "false", "true"); final XmlAttributeValue xmlAttributeValue = element.getBooleanAttribute().getXmlAttributeValue(); final PsiElement psiElement = reference.getElement(); assertEquals(xmlAttributeValue, psiElement); assertEquals(new TextRange(0, "true".length()).shiftRight(1), reference.getRangeInElement()); }