void () { myFixture.copyFileToProject("pluginXml_locateByPsiClass.xml"); myFixture.copyFileToProject("SomeClass.java"); PsiClass arrayListPsiClass = myFixture.findClass("java.util.ArrayList"); PsiClass hashMapPsiClass = myFixture.findClass(CommonClassNames.JAVA_UTIL_HASH_MAP); PsiClass myList1PsiClass = myFixture.findClass("SomeClass.MyList1"); PsiClass myList2PsiClass = myFixture.findClass("SomeClass.MyList2"); verifyLocator(locateExtensionsByPsiClass(arrayListPsiClass), 2); verifyLocator(locateExtensionsByPsiClass(hashMapPsiClass), 1); verifyLocator(locateExtensionsByPsiClass(myList1PsiClass), 1); verifyLocator(locateExtensionsByPsiClass(myList2PsiClass), 0); }