void () { PsiClass outer = createTopLevelClass("package pkg;\nclass Outer { class Inner {} }"); assertEquals("pkg", PsiUtil.getPackageName(outer)); PsiClass inner = outer.getInnerClasses()[0]; assertEquals("pkg", PsiUtil.getPackageName(inner)); }