code: public <T extends Collection<?>> T validIndex(final T collection, final int index, final String message) {
          notNull(collection);
          if (index < 0 || index >= collection.size()) {
              failIndexOutOfBounds(message);
          }
          return collection;
      }
docs: Method without varargs to increase performance