I don't think you need the "lhsExpr instanceof LiteralExpression &&" part here