code: public static <T> T addAndGet(Collection<T> collection, T item) {
          collection.add(item);
          return item;
      }
docs: Add and get t.
  
  @param <T>        the type parameter
  @param collection the collection
  @param item       the item
  @return the t