pub(super) fn extract_ident_from_pattern(
    pattern: &Pat
) -> Result<Option<String>, Error>