You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: lsp_helper.rb
    path of file: ./repos/rubocop/spec/support
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module LSPHelper
  def run_server_on_requests(*requests)
    stdin = StringIO.new(requests.map { |request| to_jsonrpc(request) }.join)

    Ru
    
  def run_server_on_requests(*requests)
    stdin = StringIO.new(requests.map { |request| to_jsonrpc(request) }.join)

    RuboCop::Server::Helper.redirect(stdin: stdin) do
      config_store = RuboCop::ConfigStore.new

      RuboCop::LSP::Server.new(config_store).start
    end

    messages = parse_jsonrpc_messages($stdout)

    [messages, $stderr]
  end