class RuboCop::Cop::Lint::UnusedBlockArgument

def augment_message(message, variable)

def augment_message(message, variable)
  scope = variable.scope
  all_arguments = scope.variables.each_value.select(&:block_argument?)
  augmentation = if scope.node.lambda?
                   message_for_lambda(variable, all_arguments)
                 else
                   message_for_normal_block(variable, all_arguments)
                 end
  [message, augmentation].join(' ')
end