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: bearer_authorization.rb
    path of file: ./repos/aws-sdk-ruby/gems/aws-sdk-core/lib/aws-sdk-core/plugins
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Aws
  # @api private
  module Plugins
    # @api private
    class BearerAuthorization < Seahorse::Client::Plugin

      option(:token_provider,
             required: 
    
      def add_handlers(handlers, cfg)
        bearer_operations =
          if cfg.api.metadata['signatureVersion'] == 'bearer'
            # select operations where authtype is either not set or is bearer
            cfg.api.operation_names.select do |o|
              !cfg.api.operation(o)['authtype'] || cfg.api.operation(o)['authtype'] == 'bearer'
            end
          else # service is not bearer auth
            # select only operations where authtype is explicitly bearer
            cfg.api.operation_names.select do |o|
              cfg.api.operation(o)['authtype'] == 'bearer'
            end
          end