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

# Copyright 2016-2021 Copado NCS LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
    
      def doctor(_state)
        errors = false

        methods.each do |method|
          next if !method.match? /doctor_config_.*/

          error = send method
          errors = errors || error
        end

        errors
      end