<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse_name(cls, name: str, default: T = None) -> T: """Parse specified name for IntEnum; return default if not found."""

        if not name:
            return default
        name = name.lower()
        return next((item for item in cls if name == item.name.lower()), default)