class RuboCop::Cop::Performance::TimesMap

def message(map_or_collect, count)

def message(map_or_collect, count)
  template = if count.literal?
               "#{MESSAGE}."
             else
               "#{MESSAGE} #{MESSAGE_ONLY_IF}."
             end
  format(template, count: count.source, map_or_collect: map_or_collect.method_name)
end