public static Map<String, SchemaKeyword> getReverseTagMap(SchemaVersion version, Predicate<SchemaKeyword> filter) {
        return Stream.of(SchemaKeyword.values())
                .filter(keyword -> !keyword.contentTypes.isEmpty() && filter.test(keyword))
                .collect(Collectors.toMap(keyword -> keyword.forVersion(version), keyword -> keyword,
                        // when two keywords are mapped to the same tag name, stick to the first (as per declaration order in this enum)
                        (k1, k2) -> k1));
    }
Provide a map over all keywords, that represent a schema tag/property, i.e., not a value.

@param version schema draft version to look-up keyword for
@param filter additional tag filter to apply
@return mapping of schema tag/property name to its corresponding tag
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/SchemaKeyword.java