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[] inners = aClass.getInnerClasses(); assertEquals(1, inners.length); assertEquals(aClass, inners[0].getParent()); teardownLoadingFilter(); }