I'm not sure how UnnecessaryCheckNotNull is supposed to work, it doesn't do anything out of the box with @NullMarked packages.
Edit: it doesn't do anything with explicitly annotated @NotNull parameters, either.
Edit 2: unless the docs are incorrect and it's not actually on by default.