void () { setupLoadingFilter(); PsiDirectory root = ProjectRootUtil.getAllContentRoots(myProject) [0]; VirtualFile child = root.getVirtualFile().findChild("pack").findChild("MyClass2.java"); assertNotNull(child); PsiJavaFile file = (PsiJavaFile)myPsiManager.findFile(child); PsiClass[] classes = file.getClasses(); assertEquals(1, classes.length); PsiClass aClass = classes[0]; PsiClass[] superTypes = aClass.getSupers(); LOG.assertTrue(superTypes.length == 2); LOG.assertTrue(superTypes[0].getQualifiedName().equals(CommonClassNames.JAVA_LANG_STRING)); LOG.assertTrue(superTypes[1].getQualifiedName().equals(CommonClassNames.JAVA_LANG_RUNNABLE)); teardownLoadingFilter(); }