static void OnGetChanges(List <ChangeWrapper> changes)
 {
     SetChangesToPublish(changes);
     // Notify new changes and call event on main thread.
     IsGettingChanges = false;
     RefreshChangesEvent.Set();
     EditorApplication.delayCall += () => GetChangesFinished?.Invoke();
 }
        static void OnGetChangesException(Exception e)
        {
            // Notify new changes and call event on main thread.
            IsGettingChanges = false;

            // NOTE this indicates that the server has received multiple
            // GetChanges requests and is cancelling this on in favor of a newer one.
            // No need to log the error in this case.
            if (e is CollabProxyException cpe &&
                cpe.InnermostExceptionMessage.Contains("AbortGetChangesRequestException"))
            {
                return;
            }

            RefreshChangesEvent.Set();
            EditorApplication.delayCall += () => GetChangesFinished?.Invoke();
            LogExceptionDetails(e);
        }