private static int getAdjustedTableSize(int candidate) {
    int index = Arrays.binarySearch(HASHTABLE_SIZES, candidate);
    if (index >= 0) return candidate;
    return HASHTABLE_SIZES[-index];
  }
private static int getAdjustedTableSize(int candidate)