class CollectionFunctions {

    public static <T> List<T> removeDuplicates(Collection<T> list) {
        if (list == null) {
            return emptyList();
        }
        return list.stream().distinct().collect(toList());
    }

    private  CollectionFunctions();

}