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: resolve_discussions.rb
    path of file: ./repos/gitlabhq/app/services/concerns/issues
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Issues
  module ResolveDiscussions
    include Gitlab::Utils::StrongMemoize

    attr_reader :merge_request_to_resolve_discussions_of_iid, :discussion_to_resolve_id

    # rubocop:disable Gitlab/ModuleWithInstanceVariables
    def filter_resolve_discussion_params
      @merge_request_to_resolve_discussions_of_iid ||= params.delete(:merge_request_to_resolve_d
    
    def discussions_to_resolve
      return [] unless merge_request_to_resolve_discussions_of

      @discussions_to_resolve ||= # rubocop:disable Gitlab/ModuleWithInstanceVariables
        if discussion_to_resolve_id
          discussion_or_nil = merge_request_to_resolve_discussions_of
                                .find_discussion(discussion_to_resolve_id)
          Array(discussion_or_nil)
        else
          merge_request_to_resolve_discussions_of
            .discussions_to_be_resolved
        end