fn update_variant( editor: &SyntaxEditor, variant: &Variant, generics: Option<GenericParamList>, ) -> Option<()>