@SuppressWarnings("varargs")
    @SafeVarargs
    public static <T> List<T> copyAndAdd(List<T> original, T... element) {
        switch (original.size() + element.length) {
            case 0 : return emptyList();
            case 1 : return singletonList(
                original.isEmpty() ? element[0] : original.get(0)
            );
            default :
                return asUnmodifiableList(original, element);
        }
    }
Creates a copy of the specified list and adds the specified elements to
it before returning it as an immutable list.

@param <T>       the element type
@param original  the original list
@param element   elements to add
@return          the new immutable list
runtime-parent/runtime-field/src/main/java/com/speedment/runtime/field/internal/util/CollectionUtil.java