class RuboCop::Cop::Style::EachWithObject

def return_value(body)

def return_value(body)
  return unless body
  return_value = body.begin_type? ? body.children.last : body
  return_value if return_value&.lvar_type?
end