class RuboCop::Cop::Commissioner

def restricted_map(callbacks)

NOTE: mutates `callbacks` in place
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