BaseRefactoringProcessor () { final List<ParameterInfoImpl> parameters = getParameters(); ParameterInfoImpl @NotNull [] parameterInfo = parameters.toArray(new ParameterInfoImpl[0]); return ((ChangeSignatureRefactoringImpl)JavaRefactoringFactory.getInstance(myProject) .createChangeSignatureProcessor(myMethod.getMethod(), isGenerateDelegate(), getVisibility(), getMethodName(), getNewReturnType(), parameterInfo, getExceptions(), myMethodsToPropagateParameters, myMethodsToPropagateExceptions, infos -> { if (callback != null) { callback.consume(new ArrayList<>(getParameters())); } })).getProcessor(); }