docs: public static void writeNullablePartitionIdSet(PartitionIdSet partitionIds, ObjectDataOutput out) throws IOException {
          if (partitionIds == null) {
              out.writeInt(-1);
              return;
          }
          out.writeInt(partitionIds.getPartitionCount());
          out.writeInt(partitionIds.size());
          PrimitiveIterator.OfInt intIterator = partitionIds.intIterator();
          while (intIterator.hasNext()) {
              out.writeInt(intIterator.nextInt());
          }
      }