@SuppressWarnings({ "unchecked", "rawtypes" })
    public BooleanExpression instanceOfAny(Class... types) {
        BooleanExpression[] exprs = new BooleanExpression[types.length];
        for (int i = 0; i < types.length; i++) {
            exprs[i] = this.instanceOf(types[i]);
        }
        return Expressions.anyOf(exprs);
    }
Create an {@code this instanceOf type} expression

@param <B>
@param type rhs of the expression
@return instanceof expression
querydsl-core/src/main/java/com/querydsl/core/types/dsl/BeanPath.java