void () { String basePath = getRelativePath() + getTestName(false); configureByFile(basePath + ".java"); final PsiElement targetElement = TargetElementUtil.findTargetElement(getEditor(), TargetElementUtil.ELEMENT_NAME_ACCEPTED); assertTrue("<caret> is not on method name", targetElement instanceof PsiMethod); PsiMethod method = (PsiMethod)targetElement; final PsiClass containingClass = method.getContainingClass(); assertNotNull(containingClass); final PsiMethod[] callers = containingClass.findMethodsByName("caller", false); assertTrue(callers.length > 0); final PsiMethod caller = callers[0]; final HashSet<PsiMethod> propagateParametersMethods = new HashSet<>(); propagateParametersMethods.add(caller); final PsiParameter[] parameters = method.getParameterList().getParameters(); new ChangeSignatureProcessor(getProject(), method, false, null, method.getName(), CanonicalTypes.createTypeWrapper(PsiTypes.voidType()), new ParameterInfoImpl[]{ ParameterInfoImpl.create(0).withName(parameters[0].getName()).withType(parameters[0].getType()), ParameterInfoImpl.createNew().withName("b").withType(PsiTypes.booleanType())}, null, propagateParametersMethods, null ).run(); checkResultByFile(basePath + "_after.java"); }