private static Optional<Version> requireNonZero(Optional<Version> version) {
        Objects.requireNonNull(version, "version must be non-null");
        if (version.isEmpty()) return version;
        if (version.get().isEmpty()) throw new IllegalArgumentException("version must be non-zero");
        return version;
    }
Returns a copy of this with wanted version set to given version
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/OsVersion.java