class RuboCop::Cop::Style::MixinGrouping

def check_grouped_style(send_node)

def check_grouped_style(send_node)
  return if sibling_mixins(send_node).size == 1
  message = format(MSG, mixin: send_node.method_name, suffix: 'a single statement')
  add_offense(send_node, message: message) do |corrector|
    range = send_node.loc.expression
    mixins = sibling_mixins(send_node)
    if send_node == mixins.first
      correction = group_mixins(send_node, mixins)
    else
      range = range_to_remove_for_subsequent_mixin(mixins, send_node)
      correction = ''
    end
    corrector.replace(range, correction)
  end
end