How are others catching deprecated/obsolete referenced objects in their solutions?

With the latest release coming of BC version 26 we (and our customers) are getting an automated email from Microsoft like this one:

We do in fact include a reference to the object removed, so it’s a correct problem, but what I’m trying to understand better is why this type of warning doesn’t show up in our code base or when building our extension. We do see some warning about a few objects that are going to be removed, but the one in question above never appeared as a problem in the code (I can’t seem to post a second image, but it’s a warning that the InitFromSalesLine method is marked for removal with Tag: 25.0 provided.

This happened last year with the BC 24 Wave 1 release as well when a referenced object was removed and we seemingly didn’t get a clear warning. I feel like I’m missing something really obvious so what are others doing to catch this type of issue ahead of time?