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: save_in_progress_collector.rb
    path of file: ./repos/vets-api/modules/health_quest/app/services/health_quest/questionnaire_manager
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module HealthQuest
  module QuestionnaireManager
    ##
    # An object for setting the status of the save in progress for the questionnaire
    #
    # @!attribute groups
    #   @return [Respon
    
      def collect
        groups.sip_responses&.each do |sip|
          sip_quest_id = sip.form_id.match(ID_MATCHER)[1]
          questionnaire = groups.appt_questionnaires[sip_quest_id]
          next if questionnaire.blank?

          response_hash = { form_id: sip.form_id, status: IN_PROGRESS_STATUS }

          questionnaire[:questionnaire_response] << response_hash.with_indifferent_access
        end
      end