void () { PsiClass aClass = getFile("MyClass").getClasses()[0]; PsiClass[] inners = aClass.getInnerClasses(); assertEquals(1, inners.length); assertEquals(aClass, inners[0].getParent()); PsiField[] fields = aClass.getFields(); assertEquals(2, fields.length); assertEquals(aClass, fields[0].getParent()); PsiMethod[] methods = aClass.getMethods(); assertEquals(3, methods.length); assertEquals(aClass, methods[0].getParent()); assertNotNull(aClass.findFieldByName("field1", false)); }