docs: @Override
    public void writeExternal(ObjectOutput out) throws IOException {
      super.writeExternal(out);
      out.writeBoolean(isLeaf);
      out.writeInt(numEntries);
      // Entries will be written in subclasses
    }