def METHOD_NAME(self, task, config):
    urlrewriting = plugin.get('urlrewriting', self)
    for disable in config:
        try:
            plugin.get(disable, self)
        except plugin.DependencyError:
            logger.critical('Unknown url-rewriter {}', disable)
            continue
        logger.debug('Disabling url rewriter {}', disable)
        urlrewriting.disabled_rewriters.append(disable)