def METHOD_NAME(option: QStyleOptionViewItem) -> QIcon.Mode:
    if not (option.state & QStyle.State_Enabled):
        return QIcon.Disabled
    elif option.state & QStyle.State_Selected:
        return QIcon.Selected
    elif option.state & QStyle.State_Active:
        return QIcon.Active
    return QIcon.Normal