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: type_env_builder.rb
    path of file: ./repos/steep/lib/steep/type_inference
    
    the code of the file until where you have to start completion: module Steep
  module TypeInference
    class TypeEnvBuilder
      module Command
        class AnnotationsBase
          attr_reader :annotations

          def initialize(annotations)
            @annotations = annotations
          end
        end

        cl
    
          def call(env)
            local_variable_types = annotations.var_type_annotations.each.with_object({}) do |pair, hash|
              name, annotation = pair
              annotation_type = annotations.absolute_type(annotation.type) || annotation.type

              if current_type = env[name]
                on_duplicate&.call(name, current_type, annotation_type)
                hash[name] = [annotation_type, annotation_type]
              else
                hash[name] = [annotation_type, annotation_type]
              end
            end