class IntMatchExprEvaluator implements IntMatchExprVisitor<Boolean, IntExpr> {

  @Override
  public @Nonnull Boolean visitIntComparison(IntComparison intComparison, IntExpr arg) {
    return intComparison
        .getComparator()
        .apply(
            arg.accept(IntExprEvaluator.instance(), null),
            intComparison.getExpr().accept(IntExprEvaluator.instance(), null))
        .getBooleanValue();
  }

}