class RubyLsp::Requests::SignatureHelp

def initialize(document, global_state, position, context, dispatcher, sorbet_level) # rubocop:disable Metrics/ParameterLists

rubocop:disable Metrics/ParameterLists
: ((RubyDocument | ERBDocument) document, GlobalState global_state, Hash[Symbol, untyped] position, Hash[Symbol, untyped]? context, Prism::Dispatcher dispatcher, SorbetLevel sorbet_level) -> void
def initialize(document, global_state, position, context, dispatcher, sorbet_level) # rubocop:disable Metrics/ParameterLists
  super()
  char_position, _ = document.find_index_by_position(position)
  delegate_request_if_needed!(global_state, document, char_position)
  node_context = RubyDocument.locate(
    document.ast,
    char_position,
    node_types: [Prism::CallNode],
    code_units_cache: document.code_units_cache,
  )
  target = adjust_for_nested_target(node_context.node, node_context.parent, position)
  @target = target #: Prism::Node?
  @dispatcher = dispatcher
  @response_builder = ResponseBuilders::SignatureHelp.new #: ResponseBuilders::SignatureHelp
  Listeners::SignatureHelp.new(@response_builder, global_state, node_context, dispatcher, sorbet_level)
end