void (final String className, final String newName) { PsiClass aClass = myFixture.findClass(className); assertNotNull("Class XX not found", aClass); final RenameProcessor processor = new RenameProcessor(getProject(), aClass, newName, true, true); for (AutomaticRenamerFactory factory : AutomaticRenamerFactory.EP_NAME.getExtensionList()) { processor.addRenamerFactory(factory); } processor.run(); }