code: def _get_handler(self, handler_class):
          
          element = None
          for handler in self.handlers:
              if isinstance(handler, handler_class):
                  element = handler
                  break
          return element
docs: Return an existing class of handler.