public static boolean validateExpressionTerms(final ExpressionItem expressionItem,
                                                  final Predicate<ExpressionTerm> predicate) {
        final AtomicBoolean isValid = new AtomicBoolean(false);
        walkExpressionTree(expressionItem, expressionItem2 -> {
            if (expressionItem2 instanceof ExpressionTerm) {
                isValid.set(predicate.test((ExpressionTerm) expressionItem2));
                return isValid.get();
            } else {
                return true;
            }
        });
        return isValid.get();
    }
@return True if there are at least one enabled term under the expressionOperator
stroom-query/stroom-query-api/src/main/java/stroom/query/api/ExpressionUtil.java