Collection<UsageInfo> (String filename) { final String testName = getTestName(false); myFixture.copyDirectoryToProject("findUsages/" + testName, ""); PsiDocumentManager.getInstance(myFixture.getProject()).commitAllDocuments(); myFixture.configureFromTempProjectFile(filename); final int flags = TargetElementUtil.ELEMENT_NAME_ACCEPTED | TargetElementUtil.REFERENCED_ELEMENT_ACCEPTED; final PsiElement element = TargetElementUtil.findTargetElement(myFixture.getEditor(), flags); assertNotNull(element); return myFixture.findUsages(element); }