void () { doTest(new PerformAction() { @Override public void performAction(VirtualFile rootDir, VirtualFile rootAfter) { PsiFile file = myPsiManager.findFile(rootDir.findChild("p1").findChild("Form1.form")); Assert.assertNotNull(file); new RenameProcessor(myProject, file, "Form2.form", true, true).run(); } }); }