checkStorage

protected static S checkStorage<S extends AutoCloseable>(S storage)

Ensures that the storage is not null.

Return

passed value if it's not not null

Throws

if the passed instance is null