Kotlin is a JVM language that has built in support for nullable and non-null types. Java, as we know, does not have this support.
However, Java does have @Nullable and @NotNull (or similar) annotations provided through Jetbrains, FindBugs, Android, and JSR305.
Like Kotlin, I would like to require (via IDE) all Java parameters and fields to be annotated with one of these annotations. If possible, I would like to use CheckStyle, as I already have it integrated into our build workflow. However, I could not find any rules programmed for the purpose of requiring annotations in CheckStyle's list of checks.
How would I go about doing something like this?