# File lib/yard/handlers/base.rb, line 544
      def ensure_loaded!(object, max_retries = 1)
        return if object.root?
        return object unless object.is_a?(Proxy)

        retries = 0
        while object.is_a?(Proxy)
          if retries <= max_retries
            log.debug "Missing object #{object} in file `#{parser.file}', moving it to the back of the line."
            parser.parse_remaining_files
          else
            raise NamespaceMissingError, object
          end
          retries += 1
        end
        object
      end