int internBytes(byte @NotNull [] bytes) {
    if (bytes.length == 0) return 0;

    int start = arrayToStart.getInt(bytes);
    if (start == 0) {
      start = joinedBuffer.size() + 1; // should be positive
      arrayToStart.put(bytes, start);
      joinedBuffer.write(bytes, 0, bytes.length);
    }
    return start;
  }
int internBytes(byte @NotNull [] bytes)