void (@NotNull XmlAttributeValue value) { final PsiElement[] children = value.getChildren(); for (PsiElement child : children) { if (child instanceof XmlEntityRef) { PsiElement psiElement = child.getReferences()[0].resolve(); assertNotNull(psiElement); assertEquals(getTestName(false) + ".ent", psiElement.getContainingFile().getVirtualFile().getName()); assertTrue(((Navigatable)psiElement).canNavigate()); } } }