// If we add any more references, add them here, or SWEA's usage count won't pick them up!!
        public static bool CanContainReference([NotNull] IYamlDocument document)
        {
            var buffer = document.Body.GetTextAsBuffer();

            return(UnityEventTargetReferenceFactory.CanContainReference(buffer) ||
                   MonoScriptReferenceFactory.CanContainReference(buffer));
        }
 // If we add any more references, add them here, or SWEA's usage count won't pick them up!!
 public static bool CanContainReference([NotNull] IBuffer buffer)
 {
     return(UnityEventTargetReferenceFactory.CanContainReference(buffer) ||
            MonoScriptReferenceFactory.CanContainReference(buffer));
 }