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

module Mongoid
  # This module handles reloading behavior of documents.
  module Reloadable
    # Reloads the +Document+ att
    
    def check_for_deleted_document!(attributes)
      return unless Mongoid.raise_not_found_error
      return unless attributes.nil? || attributes.empty?

      shard_keys = atomic_selector.with_indifferent_access.slice(*shard_key_fields, :_id)
      raise Errors::DocumentNotFound.new(self.class, _id, shard_keys)
    end