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

module Puppet::Pops
module Evaluator
# @api private
module Runtime3ResourceSupport
  CLASS_STRING = 'class'

  def self.create_resources(file, line, scope, virtual, exported, type_name, resource_titles, evaluated_parameters)
    env = scope.environment
    #    loader = Adapters::LoaderAdapter.loader_for_model_object(o, scope)

    if type_name.is_a?(String) && type_name.casecmp(CLASS_STRING) == 0
      # Resolve a 'class' and its titles
      resource_titles = resource_ti
    
  def self.create_resources(file, line, scope, virtual, exported, type_name, resource_titles, evaluated_parameters)
    env = scope.environment
    #    loader = Adapters::LoaderAdapter.loader_for_model_object(o, scope)

    if type_name.is_a?(String) && type_name.casecmp(CLASS_STRING) == 0
      # Resolve a 'class' and its titles
      resource_titles = resource_titles.collect do |a_title|
        hostclass = env.known_resource_types.find_hostclass(a_title)
        hostclass ? hostclass.name : a_title
      end
      # resolved type is just the string CLASS
      resolved_type = CLASS_STRING
    else
      # resolve a resource type - pcore based, ruby impl or user defined
      resolved_type = find_resource_type(scope, type_name)
    end