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: resolved_gem_set.rb
    path of file: ./repos/gel/lib/gel
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require_relative "set"

class Gel::ResolvedGemSet
  class ResolvedGem
    attr_reader :name, :version, :platform, :deps, :set

    def initialize(name, version, plat
    
  def server_catalogs
    @server_catalogs ||=
      begin
        require_relative "catalog"

        remote_catalogs = catalog_uris.map { |uri| Gel::Catalog.new(uri, work_pool: catalog_pool) }

        vendor_path = File.expand_path("../vendor/cache", filename)
        if Dir.exist?(vendor_path)
          require_relative "vendor_catalog"

          vendor_catalog = Gel::VendorCatalog.new(vendor_path)
          vendor_catalog.prepare
          [vendor_catalog] + remote_catalogs
        else
          remote_catalogs
        end