void (final String fileName) { PropertiesFile propFile = (PropertiesFile) myPsiManager.findFile(myTestProjectRoot.findChild(fileName)); assertNotNull(propFile); final Query<PsiReference> query = ReferencesSearch.search(propFile.getContainingFile()); final Collection<PsiReference> result = query.findAll(); assertEquals(1, result.size()); verifyReference(ContainerUtil.getFirstItem(result), "form.form", 949); }