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