public CaseWhen<T, Q> when(Expression<? extends D> when) {
            return new CaseWhen<T,Q>(this, when);
        }
Intermediate step

@param <T> Result type
@param <Q> Parent expression type
querydsl-core/src/main/java/com/querydsl/core/types/dsl/CaseForEqBuilder.java