class OutputFactory {

    static <T> List<T> newList(int capacity) {<FILL_FUNCTION_BODY>}

    static <V> Set<V> newSet(int capacity) {

        if (capacity < 1) {
            return Collections.emptySet();
        }

        return new LinkedHashSet<>(capacity, 1);
    }

}


        if (capacity < 1) {
            return Collections.emptyList();
        }

        return new ArrayList<>(Math.max(1, capacity));
    
<no_super_class>