code: public Iterable<EncodedParameter> encodedFormParameters(Object[] swaggerMethodArguments) {
          if (formSubstitutions == null) {
              return Collections.emptyList();
          }
          final List<EncodedParameter> result = new ArrayList<>();
          final PercentEscaper escaper = UrlEscapers.QUERY_ESCAPER;
  
          for (Substitution formSubstitution : formSubstitutions) {
              final int parameterIndex = formSubstitution.methodParameterIndex();
              if (0 <= parameterIndex && parameterIndex < swaggerMethodArguments.length) {
                  final Object methodArgument = swaggerMethodArguments[formSubstitution.methodParameterIndex()];
                  String parameterValue = serialize(methodArgument);
                  if (parameterValue != null) {
                      if (formSubstitution.shouldEncode() && escaper != null) {
                          parameterValue = escaper.escape(parameterValue);
                      }
  
                      result.add(new EncodedParameter(formSubstitution.urlParameterName(), parameterValue));
                  }
              }
          }
          return result;
      }
docs: Get the encoded form parameters that have been added to this value based on the provided
  method arguments.
  
  @param swaggerMethodArguments the arguments that will be used to create the form parameters'
  values
  @return an Iterable with the encoded form parameters