public synchronized @NotNull AppendMemoryBuffer copy() {
      return new AppendMemoryBuffer(buffer.clone(), bufferPosition, startingOffsetInFile);
    }
public synchronized @NotNull AppendMemoryBuffer copy()