private MethodCallExpr getOrSetValueExpression(Expression scope, Expression setExpression) { return new MethodCallExpr( scope, (setExpression == null ? "getValue" : "setValue"), (setExpression == null ? Collections.emptyList() : Collections.singletonList(setExpression))); }