module RuboCop::Cop::HashTransformMethod

def on_send(node)

def on_send(node)
  on_bad_hash_brackets_map(node) do |*match|
    handle_possible_offense(node, match, 'Hash[_.map {...}]')
  end
  on_bad_map_to_h(node) do |*match|
    handle_possible_offense(node, match, 'map {...}.to_h')
  end
end