void () { final MyElement element = createElement("<a><psi-type> java.lang.Strin </psi-type></a>"); final PsiReference psiReference = assertReference(element.getPsiType(), null); assertEquals(new TextRange(22, 22 + "Strin".length()), psiReference.getRangeInElement()); }