docs: public <T extends Collection<?>> T validIndex(final T collection, final int index, final String message, final Object... values) {
          notNull(collection);
          if (index < 0 || index >= collection.size()) {
              failIndexOutOfBounds(String.format(message, values));
          }
          return collection;
      }