[java/cs] Handle Null<AbstractOfNonNullable> correctly. See #2224