public static boolean isNullOrEmpty(String string) {
        return string == null || string.isEmpty();
    }
Check whether the given text value is either {@code null} or empty (i.e., has zero length).

@param string the text value to check
@return check result
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/impl/Util.java