All this is discoverable in static code analysis. It is entirely possible to make tools that check the docs cover all these cases. There are probably tools they can buy to do it.
Google should check it all, every release.
Google should check it all, every release.