void () { final JavaPsiFacade manager = myFixture.getJavaFacade(); final PsiClass aClass = manager.findClass(myInnerClassName, GlobalSearchScope.moduleScope(getModule())); final MoveInnerProcessor moveInnerProcessor = new MoveInnerProcessor(getProject(), null); final PsiElement targetContainer = myPackageName != null ? findDirectory(myPackageName) : MoveInnerImpl.getTargetContainer(aClass, false); assertNotNull(targetContainer); moveInnerProcessor.setup(aClass, myNewClassName, isPassOuterClass(), myParameterName, mySearchInComments, mySearchInNonJava, targetContainer); moveInnerProcessor.run(); }