}
}
if (sam.returnType != TypeBinding.VOID) {
// ii)
final TypeBinding r = sam.returnType;
Statement body = lambda.body();
if (body instanceof Expression) {
variables.addAll(new ConstraintExpressionFormula((Expression) body, r, COMPATIBLE).inputVariables(context));
} else {
// TODO: should I use LambdaExpression.resultExpressions? (is currently private).
body.traverse(new ASTVisitor() {