I don't think you need the && rhsExpr instanceof LiteralExpression part