public static List<Expression<?>> distinctList(Expression<?>... args) {
        final Set<Expression<?>> set = new LinkedHashSet<>(Arrays.asList(args));
        return CollectionUtils.unmodifiableList(new ArrayList<>(set));
    }
Create a distinct list of the given args

@param args elements
@return list with distinct elements
querydsl-core/src/main/java/com/querydsl/core/types/ExpressionUtils.java