void () { setupLoadingFilter(); PsiClass aClass = myJavaFacade.findClass("pack.MyClass2", GlobalSearchScope.allScope(myProject)); PsiReferenceList list = aClass.getMethods()[0].getThrowsList(); PsiClassType[] refs = list.getReferencedTypes(); assertEquals(2, refs.length); assertEquals("Exception", refs[0].getPresentableText()); assertEquals("java.io.IOException", refs[1].getCanonicalText()); teardownLoadingFilter(); }