getOrThrow

returns the value of the optional or throws a IllegalStateException if the optional doesn't contain a value or is null.