public List<StringMatchLocation> createZeroSingletonList(final boolean isMatch) {
        return isMatch
                ? LOCATION_ZERO
                : Collections.emptyList();
    }
Types that will need the case of pattern to be normalised if caseSensitive is true.
stroom-index/stroom-index-lucene980/src/main/java/stroom/contentindex/StringMatcher.java