void () { final String innerClassName = "pack1.DImpl.MyRunnable"; doTest(new MyPerformAction(innerClassName, "MyRunnable", false, "d", false, false, null) { @Override protected boolean isPassOuterClass() { 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); } }); }