void () { PsiClass outer = createTopLevelClass("class Outer { class Inner {} }"); assertSame(outer, PsiUtil.getTopLevelClass(outer)); PsiClass inner = outer.getInnerClasses()[0]; assertSame(outer, PsiUtil.getTopLevelClass(inner)); }