public static void writeStringOrNull(DataOutput out, @Nullable String s) throws IOException {
    out.writeBoolean(s != null);
    if (s != null) writeString(out, s);
  }
public static void writeStringOrNull(DataOutput out, @Nullable String s)