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: collection_types.rb
    path of file: ./repos/hyrax/spec/factories
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
FactoryBot.define do
  factory :collection_type, class: Hyrax::CollectionType do
    sequence(:ti
    
    def self.process_access(collection_type, evaluator) # rubocop:disable Metrics/MethodLength
      if evaluator.creator_user
        Array(evaluator.creator_user).each do |user|
          attributes = { hyrax_collection_type_id: collection_type.id,
                         access: Hyrax::CollectionTypeParticipant::CREATE_ACCESS,
                         agent_id: user,
                         agent_type: Hyrax::CollectionTypeParticipant::USER_TYPE }
          FactoryBot.create(:collection_type_participant, attributes)
        end
      end