boolean () { final PsiClass outerClass = myFixture.getJavaFacade().findClass("pack1.DImpl", GlobalSearchScope.moduleScope(getModule())); assertNotNull(outerClass); final PsiClass innerClass = myFixture.getJavaFacade().findClass(innerClassName, GlobalSearchScope.moduleScope(getModule())); assertNotNull(innerClass); return MoveInnerDialog.isThisNeeded(innerClass, outerClass); }