class RuboCop::Cop::Performance::SelectMap
def on_send(node)
def on_send(node) return if (first_argument = node.first_argument) && !first_argument.block_pass_type? return unless (send_node = map_method_candidate(node)) return unless send_node.method?(:map) map_method = send_node.parent&.block_type? ? send_node.parent : send_node range = offense_range(node, map_method) add_offense(range, message: format(MSG, method_name: node.method_name)) end