void () { doTest(new PerformAction() { @Override public void performAction(VirtualFile rootDir, VirtualFile rootAfter) { PsiClass aClass = myJavaFacade.findClass("UIClass", ProjectScope.getAllScope(myProject)); Assert.assertNotNull(aClass); new RenameProcessor(myProject, aClass, "NewClass", true, true).run(); } }); }