Fix a few incorrect nullable annotation imports and add a checkstyle rule to ensure they don't return. Closes gh-28410