def METHOD_NAME(function):
    @functools.wraps(function)
    def wrapped(*args2, **kwargs2):
        if isRecordingProfile():
            with profileCall("[SLOT] "+ function.__qualname__):
                return function(*args2, **kwargs2)
        else:
            return function(*args2, **kwargs2)
    return PyQt6PyqtSlot(*args, **kwargs)(wrapped)