code: protected static int binarySearchGuess(@NotNull final BasePage page, @NotNull final ByteIterable key) {
          int index = binarySearchGuessUnsafe(page, key);
          if (index < 0) index = 0;
          return index;
      }
docs: /*
  Returns safe binary search.
  @return index (non-negative result is guaranteed)