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

module Puppet::Pops
module Loader
# Runtime3TypeLoader
# ===
# Loads a resource type using the 3.x type loader
#
# @api private
class R
    
  def find_impl(typed_name)
    name = typed_name.name
    te = StaticLoader::BUILTIN_TYPE_NAMES_LC.include?(name) ? nil : @resource_3x_loader.load_typed(typed_name)
    if te.nil? || te.value.nil?
      # Look for Puppet::Type
      value = Puppet::Type.type(name) unless typed_name.qualified?
      if value.nil?
        # Look for a user defined type
        value = @environment.known_resource_types.find_definition(name)
        if value.nil?
          # Cache the fact that it wasn't found
          @resource_3x_loader.set_entry(typed_name, nil)
          return nil
        end