class RuboCop::Cop::Rails::InverseOf

def on_send(node)

def on_send(node)
  recv, arguments = association_recv_arguments(node)
  return unless arguments
  with_options = with_options_arguments(recv, node)
  options = arguments.concat(with_options).flat_map do |arg|
    options_from_argument(arg)
  end
  return if options_ignoring_inverse_of?(options)
  return unless scope?(arguments) || options_requiring_inverse_of?(options)
  return if options_contain_inverse_of?(options)
  add_offense(node.loc.selector, message: message(options))
end