docs: public static void assertAreCompatible(Type fileType, Type projection) {
      if (!fileType.getName().equals(projection.getName())
        || (fileType.getRepetition() != projection.getRepetition() && !fileType.getRepetition().isMoreRestrictiveThan(projection.getRepetition()))) {
        throw new InvalidRecordException(projection + " found: expected " + fileType);
      }
    }