def METHOD_NAME(cls, line: str) -> "LevelSetting":
    rest, comment = split_comment(line)
    directive, value = rest.split(None, 1)
    name = directive[2:]
    if not name:
        raise ValueError("Directive missing name.")
    level_setting = cls(name, value, comment)
    level_setting.clean()
    level_setting.validate()
    return level_setting