public static void requireNonNulls(Object... objs) {
        for (int i = 0; i < objs.length; i++) {
            int effectivelyFinal = i;
            Objects.requireNonNull(objs[i], () -> "Argument at index %d is null".formatted(effectivelyFinal));
        }
    }
Returns the argument if the condition is true, otherwise throws.
vespajlib/src/main/java/ai/vespa/validation/Validation.java