private static boolean isListEmptyOrContainingAtLeastOne(Set<String> values, SchemaGeneratorConfig config, SchemaKeyword... keywords) {
        return values.isEmpty() || Stream.of(keywords)
                .map(config::getKeyword)
                .anyMatch(values::contains);
    }
Collect a given scope's general type attributes (i.e. everything not related to the structure).

@param scope the scope/type representation for which to collect JSON schema attributes
@param generationContext generation context, including configuration to apply when looking-up attribute values
@param allowedSchemaTypes declared schema types determining which attributes are meaningful to be included
@return node holding all collected attributes (possibly empty)
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/impl/AttributeCollector.java