public static StructLikeWrapper forType(
      Types.StructType type, Comparator<StructLike> comparator) {
    return new StructLikeWrapper(comparator, JavaHash.forType(type));
  }
Wrapper to adapt StructLike for use in maps and sets by implementing equals and hashCode.
iceberg/patched-iceberg-core/src/main/java/org/apache/iceberg/util/StructLikeWrapper.java