void (@NotNull Match match, @NotNull PsiMethod psiMethod) { final PsiType expressionType = match.getChangedReturnType(psiMethod); if (expressionType == null && match.myChangedParams.isEmpty()) return; final List<ParameterInfoImpl> newParameters = patchParams(match.myChangedParams, psiMethod); final ChangeSignatureProcessor csp = new ChangeSignatureProcessor(psiMethod.getProject(), psiMethod, false, null, psiMethod.getName(), expressionType != null ? expressionType : psiMethod.getReturnType(), newParameters.toArray(new ParameterInfoImpl[0])); csp.run(); }