public override void Fix(IInspectionResult result, IRewriteSession rewriteSession)
        {
            var declaration = result.Target;
            IAttributeAnnotation annotation = result.Properties.Annotation;

            var attributeName = declaration.DeclarationType.HasFlag(DeclarationType.Module)
                ? annotation.Attribute
                : $"{declaration.IdentifierName}.{annotation.Attribute}";

            _attributesUpdater.AddAttribute(rewriteSession, declaration, attributeName, annotation.AttributeValues);
        }
        public override void Fix(IInspectionResult result, IRewriteSession rewriteSession)
        {
            var declaration = result.Target;
            IParseTreeAnnotation annotationInstance = result.Properties.Annotation;

            if (!(annotationInstance.Annotation is IAttributeAnnotation annotation))
            {
                return;
            }
            var attribute     = annotation.Attribute(annotationInstance);
            var attributeName = declaration.DeclarationType.HasFlag(DeclarationType.Module)
                ? attribute
                : $"{declaration.IdentifierName}.{attribute}";

            _attributesUpdater.AddAttribute(rewriteSession, declaration, attributeName, annotation.AttributeValues(annotationInstance));
        }