protected static Optional<String> firstNonBlank(String... values) {
        for (String value : values)
            if (value != null && ! value.isBlank())
                return Optional.of(value);

        return Optional.empty();
    }
Returns the first of the given strings which is non-null and non-blank, or throws IllegalArgumentException.
vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/AbstractVespaMojo.java