docs: public static <K, V> void writeNullableMap(Map<K, V> map, ObjectDataOutput out) throws IOException {
          // write true when the map is NOT null
          out.writeBoolean(map != null);
          if (map == null) {
              return;
          }
  
          writeMap(map, out);
      }