private Entry<K, V> readEntryIfKeyMatch(int logRecordId,
                                          @NotNull K expectedKey) throws IOException {
    return keyValuesStorage.readRecord(logRecordId, recordBuffer -> {
      return entryExternalizer.readIfKeyMatch(recordBuffer, expectedKey);
    });
  }
private Entry<K, V> readEntryIfKeyMatch(int logRecordId,
                                          @NotNull K expectedKey)