global
def set_new_method_name(new_method_name, corrector)
def set_new_method_name(new_method_name, corrector) range = block_node.send_node.loc.selector if (send_end = block_node.send_node.loc.end) # If there are arguments (only true in the `each_with_object` case) range = range.begin.join(send_end) end corrector.replace(range, new_method_name) end