[^cdr] IDEA-107195 Methods returning primitive types should be treated as @Nonnull
(cherry picked from commit ca9680c)