def METHOD_NAME(name, value):
    if value is None:
        return None
    try:
        return SETTINGS_TYPE_DICT[name](value)
    except TypeError:
        raise TypeError(f"Can't convert setting '{name}' to {SETTINGS_TYPE_DICT[name]}")