f.newBlock(f.newReturnStatement(Models.toLiteral(f, true)))));
statements.add(f.newIfStatement(
new ExpressionBuilder(f, obj)
.apply(InfixOperator.EQUALS, Models.toNullLiteral(f))
.toExpression(),
f.newBlock(f.newReturnStatement(Models.toLiteral(f, false)))));
statements.add(f.newIfStatement(
new ExpressionBuilder(f, f.newThis())
.method("getClass") //$NON-NLS-1$
.apply(InfixOperator.NOT_EQUALS, new ExpressionBuilder(f, obj)
.method("getClass") //$NON-NLS-1$