void (final String className, final String methodSignature, final String newName) { doTest(() -> { final PsiClass aClass = myFixture.findClass(className); assertNotNull(aClass); final PsiMethod methodBySignature = aClass.findMethodBySignature(getElementFactory().createMethodFromText( methodSignature + "{}", null), false); assertNotNull(methodBySignature); final RenameProcessor renameProcessor = new RenameProcessor(getProject(), methodBySignature, newName, false, false); renameProcessor.run(); }); }