code: def register_detector(self, detector_class):
          
          self._check_common_things('detector', detector_class, AbstractDetector, self._detectors)
  
          instance = detector_class(self, logger_detector)
          self._detectors.append(instance)
docs: :param detector_class: Class inheriting from `AbstractDetector`.