docs: public static void mapToFilters(final Map<String, String> map, 
        final List<TagVFilter> filters, final boolean group_by) {
      if (map == null || map.isEmpty()) {
        return;
      }
  
      for (final Map.Entry<String, String> entry : map.entrySet()) {
        TagVFilter filter = getFilter(entry.getKey(), entry.getValue());
  
        if (filter == null && entry.getValue().equals("*")) {
          filter = new TagVWildcardFilter(entry.getKey(), "*", true);
        } else if (filter == null) {
          filter = new TagVLiteralOrFilter(entry.getKey(), entry.getValue());
        }
        
        if (group_by) {
          filter.setGroupBy(true);
          boolean duplicate = false;
          for (final TagVFilter existing : filters) {
            if (filter.equals(existing)) {
              LOG.debug("Skipping duplicate filter: " + existing);
              existing.setGroupBy(true);
              duplicate = true;
              break;
            }
          }
          
          if (!duplicate) {
            filters.add(filter);
          }
        } else {
          filters.add(filter);
        }
      }
    }