public static <T> java.util.function.Predicate<T> wrap(Predicate predicate) {
        Path<?> path = predicate.accept(PathExtractor.DEFAULT, null);
        if (path != null) {
            final Evaluator<Boolean> ev = createEvaluator(path.getRoot(), predicate);
            return ev::evaluate;
        } else {
            throw new IllegalArgumentException("No path in " + predicate);
        }
    }
Wrap a Querydsl predicate into a Guava predicate

@param predicate predicate to wrapped
@return Guava predicate
querydsl-collections/src/main/java/com/querydsl/collections/FunctionalHelpers.java