def METHOD_NAME(self, method_name, *args):
    """
    Maps method_name on each extension in case the extension has the attr
    :param method_name: Name of the method to be called on each ext
    :param args: Arguments to be passed to all called functions
    """
    for ext in self.extensions:
        try:
            if hasattr(ext.obj, method_name):
                method = getattr(ext.obj, method_name)
                method(*args)
        except SystemExit:
            raise
        except KeyboardInterrupt:
            raise
        except:  # catch any exception pylint: disable=W0702
            LOG_UI.error(
                'Error running method "%s" of plugin "%s": %s',
                method_name,
                ext.name,
                sys.exc_info()[1],
            )
            stacktrace.log_exc_info(sys.exc_info(), logger=LOG_UI)