It’s not exactly like that. The annotations are used by the IDE, not by the lint command. There is no build-time checks, unfortunately. I suppose the reason is that the IDE knows a lot more about the code than Lint (which uses Lombok under the hood to parse the AST, if I recall correctly, but it’s still not as much info as what Android Studio has).