private Expression parseMapMatch(Map<?, ?> map, Function<List<Expression>, Expression> collector) {
    return collector.apply(map.entrySet()
      .stream()
      .map(entry -> tagCriterionToExpression(entry.getKey().toString(), entry.getValue()))
      .toList());
  }
Returns a boolean expression that determines whether a source feature matches a criteria defined in yaml config.

@param <T>              Type of input the expression takes
@param object           a map or list of tag criteria
@param tagValueProducer a TagValueProducer
@return a predicate which returns true if this criteria matches
planetiler-custommap/src/main/java/com/onthegomap/planetiler/custommap/BooleanExpressionParser.java