@Override
    public void resetAfterSchemaGenerationFinished() {
        super.resetAfterSchemaGenerationFinished();

        Optional.ofNullable(this.definitionNamingStrategy).ifPresent(StatefulConfig::resetAfterSchemaGenerationFinished);
        Stream.of(this.customDefinitionProviders, this.subtypeResolvers, this.typeAttributeOverrides, this.idResolvers, this.anchorResolvers)
                .flatMap(List::stream).forEach(StatefulConfig::resetAfterSchemaGenerationFinished);
    }
Determine the "$anchor" of a context-independent type representation.

@param scope context-independent type representation to determine "$anchor" value for
@return "$anchor" in a JSON Schema (may be null)
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/SchemaGeneratorGeneralConfigPart.java