class PacketHeaderConstraintsToAclLineMatchExprUtils {

  @Nullable
  static AclLineMatchExpr icmpCodeToAclLineMatchExpr(@Nullable IntegerSpace icmpCode) {
    return Optional.ofNullable(icmpCode)
        .map(IntegerSpace::getSubRanges)
        .map(k -> match(HeaderSpace.builder().setIcmpCodes(k).build()))
        .orElse(null);
  }

  private  PacketHeaderConstraintsToAclLineMatchExprUtils();

}