private static void writeStringIntMap(DataOutput dataOut, Object2IntMap<String> map) throws IOException {
    DataInputOutputUtilRt.writeINT(dataOut, map.size());
    for (String context : map.keySet()) {
      IOUtil.writeUTF(dataOut, context);
      DataInputOutputUtilRt.writeINT(dataOut, map.getInt(context));
    }
  }
private static void writeStringIntMap(DataOutput dataOut, Object2IntMap<String> map)