void (PsiElement element, String newName) { final RenameProcessor renameProcessor = createRenameProcessor(element, newName); for (AutomaticRenamerFactory factory : AutomaticRenamerFactory.EP_NAME.getExtensionList()) { if (factory.getOptionName() != null && factory.isEnabled() && factory.isApplicable(element)) { renameProcessor.addRenamerFactory(factory); } } renameProcessor.run(); }