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: active_model_validations_confirmation.rb
    path of file: ./repos/tapioca/lib/tapioca/dsl/compilers
    
    the code of the file until where you have to start completion: # typed: strict
# frozen_string_literal: true

return unless defined?(ActiveModel::Validations)

module Tapioca
  module Dsl
    module Compilers
      # `Tapioca::Dsl::Compilers::ActiveModelValidationsConfirmation` decorates RBI files for all
      # classes that use [`ActiveModel::Validates::Confirmation`](https://api.rubyonrails.org/classes/ActiveModel/Validations/HelperMethods.html#method-i-validates_confirmation_of).
      #
      # For example, with the following class:
      #
      # ~~~rb
      # class User
      #   include ActiveModel::Validations
      #
      #   validates_confirmation_of :password
      #
      #   validates :email, c
    
        def decorate
          confirmation_validators = constant.validators.grep(ActiveModel::Validations::ConfirmationValidator)

          return if confirmation_validators.empty?

          # Create a RBI definition for each class that includes Active::Model::Validations
          root.create_path(constant) do |klass|
            # Create RBI definitions for all the attributes that use confirmation validation
            confirmation_validators.each do |validator|
              validator.attributes.each do |attr_name|
                klass.create_method("#{attr_name}_confirmation", return_type: "T.untyped")
                klass.create_method(
                  "#{attr_name}_confirmation=",
                  parameters: [create_param("#{attr_name}_confirmation", type: "T.untyped")],
                  return_type: "T.untyped",
                )
              end
            end
          end
        end