TernaryIfExpression ifExpression = new TernaryIfExpression();
Computation test = new Computation();
test.add(var);
test.add(new BinaryOp(new Token("in", Token.Kind.IN, var.sourceLine, var.sourceColumn))
.add(new JavaLiteral('"' + Closure.class.getName() + '"')));
ifExpression.add(test); // test := var instanceof closure
ifExpression.add(toFunctionCall(var, list)); // then call
ifExpression.add(var); // else return as is
return ifExpression;