code: public static Map<String, QueryParameter> getUsedParametersMap(String sql, Map<String, QueryParameter> allParameters) {
          Query query = new Query(sql);
          return getUsedParametersMap(query, allParameters);
      }
docs: Get used parameters map where the key is the parameter name and the value is the parameter
  Not all the report parameters have to be used, some may only be defined for further usage.
  The result will contain also the hidden parameters.
  
  @param sql           sql
  @param allParameters parameters map
  @return used parameters map