private long appendEntry(@NotNull K key,
                           @Nullable V value) throws IOException {
    KnownSizeRecordWriter entryWriter = entryExternalizer.writerFor(key, value);
    return keyValuesLog.append(entryWriter, entryWriter.recordSize());
  }
private long appendEntry(@NotNull K key,
                           @Nullable V value)