class RuboCop::Cop::Performance::Detect

def accept_first_call?(receiver, body)

def accept_first_call?(receiver, body)
  caller, _first_method, args = *receiver
  # check that we have usual block or block pass
  return true if body.nil? && (args.nil? || !args.block_pass_type?)
  lazy?(caller)
end