void () { setupLoadingFilter(); PsiClass psiClass = myJavaFacade.findClass("Class2", GlobalSearchScope.allScope(myProject)); assertNotNull(psiClass); PsiTypeParameterList parameterList = psiClass.getTypeParameterList(); assertNotNull(parameterList); PsiTypeParameter[] params = parameterList.getTypeParameters(); assertEquals(params.length, 2); assertEquals(params[0].getName(), "A"); assertEquals(params[1].getName(), "B"); assertEquals("java.lang.String", params[0].getSupers()[0].getQualifiedName()); assertEquals(CommonClassNames.JAVA_LANG_OBJECT, params[1].getSupers()[0].getQualifiedName()); teardownLoadingFilter(); }