code: public Iterable<EncodedParameter> encodedQueryParameters(Object[] swaggerMethodArguments) {
          final List<EncodedParameter> result = new ArrayList<>();
          if (querySubstitutions != null) {
              final PercentEscaper escaper = UrlEscapers.QUERY_ESCAPER;
  
              for (Substitution querySubstitution : querySubstitutions) {
                  final int parameterIndex = querySubstitution.methodParameterIndex();
                  if (0 <= parameterIndex && parameterIndex < swaggerMethodArguments.length) {
                      final Object methodArgument = swaggerMethodArguments[querySubstitution.methodParameterIndex()];
                      String parameterValue = serialize(methodArgument);
                      if (parameterValue != null) {
                          if (querySubstitution.shouldEncode() && escaper != null) {
                              parameterValue = escaper.escape(parameterValue);
                          }
  
                          result.add(new EncodedParameter(querySubstitution.urlParameterName(), parameterValue));
                      }
                  }
              }
          }
          return result;
      }
docs: Get the encoded query 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 query parameters'
  values
  @return an Iterable with the encoded query parameters