public static <T> List<T> removeDuplicates(List<T> list){ Set<T> set = new LinkedHashSet<>(list); return new ArrayList<T>(set); }