docs: @SuppressWarnings("unchecked")
  	public static Collection createApproximateCollection(Object collection, int initialCapacity) {
  		if (collection instanceof LinkedList) {
  			return new LinkedList();
  		}
  		else if (collection instanceof List) {
  			return new ArrayList(initialCapacity);
  		}
  		else if (collection instanceof SortedSet) {
  			return new TreeSet(((SortedSet) collection).comparator());
  		}
  		else {
  			return new LinkedHashSet(initialCapacity);
  		}
  	}