class CommunitySetMatchExprToBDD implements CommunitySetMatchExprVisitor<BDD, CommunitySetMatchExprToBDD.Arg> {

  @Override
  public BDD visitCommunitySetMatchAny(CommunitySetMatchAny communitySetMatchAny, Arg arg) {
    return BDDRoute.factory.orAll(
        communitySetMatchAny.getExprs().stream()
            .map(expr -> expr.accept(this, arg))
            .collect(ImmutableList.toImmutableList()));
  }

}