protected static void checkCapacityHardLimit(int capacity) {
    if (!isCorrectCapacity(capacity)) {
      throw new IllegalArgumentException("capacity(=" + capacity + ") must be in [0, " + MAX_CAPACITY + "]");
    }
  }
protected static void checkCapacityHardLimit(int capacity)