code: private void updateMethodParameters(final Set<MethodParameter> parameters, final Set<MethodParameter> additional) {
          additional.forEach(a -> {
              // remove preexisting parameters with identical names
              final Optional<MethodParameter> existingParameter = parameters.stream().filter(p -> p.getName().equals(a.getName())).findAny();
              existingParameter.ifPresent(parameters::remove);
              parameters.add(a);
          });
      }
docs: Updates {@code parameters} to contain the {@code additional} parameters as well.
  Preexisting parameters with identical names are overridden.