class RuboCop::Cop::Commissioner
def restricted_map(callbacks)
def restricted_map(callbacks) map = {} callbacks&.select! do |cop| restrictions = cop.class.send :restrict_on_send restrictions.each { |name| (map[name] ||= []) << cop } restrictions.empty? end map end