def METHOD_NAME(*args, **kwargs) -> Callable[..., Any]:
    """Drop in replacement for PyQt6's pyqtSlot decorator which records profiling information.
    See the PyQt6 documentation for information about pyqtSlot.
    """
    if enabled():
        def wrapIt(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)
        return wrapIt
    else:
        def dontWrapIt(function):
            return PyQt6PyqtSlot(*args, **kwargs)(function)
        return dontWrapIt