public static Set<String> asTagNameSet(final StandardExplorerTags... tags) {
        if (tags == null || tags.length == 0) {
            return Collections.emptySet();
        } else if (tags.length == 1) {
            return Collections.singleton(tags[0].getTagName());
        } else {
            return Arrays.stream(tags)
                    .map(StandardExplorerTags::getTagName)
                    .collect(Collectors.toCollection(TreeSet::new));
        }
    }
Map the passed tags to their tag names and return a sorted set for consistency
stroom-core-shared/src/main/java/stroom/explorer/shared/StandardExplorerTags.java