code: def toggle_auto_import(self, checked):
          
          self.combo.validate_current_text()
          self.set_option('automatic_import', checked)
          self.force_refresh()
docs: Toggle automatic import feature