less strict null warnings to enforce compatibility with IDEA

* use warnings instead of errors, as IDEA can infer nullness from an
external database also
* do not inherit nullness, to enforce the full declaration at every
level