void (VirtualFile rootDir, VirtualFile rootAfter) { PsiPackage aPackage = JavaPsiFacade.getInstance(myPsiManager.getProject()).findPackage("gov"); Assert.assertNotNull(aPackage); new RenameProcessor(myProject, aPackage, "org", true, true).run(); }