void (final String className, final String methodSignature, final String newName) { doTest(() -> { final PsiClass aClass = myFixture.getJavaFacade().findClass(className, GlobalSearchScope.moduleScope(getModule())); assertNotNull(aClass); final PsiMethod methodBySignature = aClass.findMethodBySignature(getElementFactory().createMethodFromText( methodSignature + "{}", null), false); assertNotNull(methodBySignature); final RenameProcessor processor = new RenameProcessor(getProject(), methodBySignature, newName, false, false); for (AutomaticRenamerFactory factory : AutomaticRenamerFactory.EP_NAME.getExtensionList()) { processor.addRenamerFactory(factory); } processor.run(); }); }