void (PsiElement elementAtCaret, String newName) { final RenameProcessor processor = new RenameProcessor(getProject(), elementAtCaret, newName, false, false); for (AutomaticRenamerFactory factory : AutomaticRenamerFactory.EP_NAME.getExtensionList()) { processor.addRenamerFactory(factory); } processor.run(); }