def METHOD_NAME(self, info):
    if isinstance(info, qt.QFileIconProvider.IconType):
        # It's another C++ method signature:
        # QIcon QFileIconProvider::icon(QFileIconProvider::IconType type)
        return super(SafeFileIconProvider, self).METHOD_NAME(info)
    style = qt.QApplication.instance().style()
    path = info.filePath()
    if path in ["", "/"]:
        # That's the computer root on Windows or Linux
        result = style.standardIcon(qt.QStyle.SP_ComputerIcon)
    elif sys.platform == "win32" and path[-2] == ":":
        # That's a drive on Windows
        result = self.__windowsDriveIcon(info)
    elif self.__filterDirAndFiles:
        if info.isDir():
            result = style.standardIcon(qt.QStyle.SP_DirIcon)
        else:
            result = style.standardIcon(qt.QStyle.SP_FileIcon)
    else:
        result = qt.QFileIconProvider.METHOD_NAME(self, info)
    return result