private static @NotNull Int2IntMultimap buildValueToIdIndex(@NotNull AppendOnlyLog valuesLog) throws IOException {
    Int2IntMultimap valueHashToId = new Int2IntMultimap();
    valuesLog.forEachRecord((logId, buffer) -> {
      String value = readString(buffer);
      int id = convertLogIdToValueId(logId);

      int valueHash = hashOf(value);

      valueHashToId.put(valueHash, id);
      return true;
    });
    return valueHashToId;
  }
private static @NotNull Int2IntMultimap buildValueToIdIndex(@NotNull AppendOnlyLog valuesLog)