public static Predicate<String> createWildCardedInPredicate(final String[] filters,
                                                                final boolean isCaseSensitive) {
        if (filters == null || filters.length == 0) {
            return str -> false;
        } else {
            final List<Predicate<String>> predicates = Arrays.stream(filters)
                    .map(String::trim)
                    .filter(part -> !part.isEmpty())
                    .map(part -> createWildCardedFilterPredicate(part, true, isCaseSensitive))
                    .collect(Collectors.toList());
            return orPredicates(predicates, str -> false);
        }
    }
Create a predicate ORing all the filter terms in filters together. Supports standard stroom
wild carding with '*'.  Matches are complete matches.
stroom-util/src/main/java/stroom/util/PredicateUtil.java