public ObjectNode collectDefinitions(String designatedDefinitionPath) {
        String referenceKeyPrefix = this.getReferenceKeyPrefix(designatedDefinitionPath);
        ObjectNode definitionsNode = this.buildDefinitionsAndResolveReferences(referenceKeyPrefix, null);
        this.performCleanup(definitionsNode, referenceKeyPrefix);
        return definitionsNode;
    }
Completing the schema generation (after {@link #createSchemaReference(Type, Type...)} was invoked for all relevant types) by creating an
{@link ObjectNode} containing common schema definitions.

<p>
The given definition path (e.g. {@code "definitions"}, {@code "$defs"}, {@code "components/schemas"}) will be used in generated {@code "$ref"}
values (e.g. {@code "#/definitions/YourType"}, {@code "#/$defs/YourType"}, {@code "#/components/schemas/YourType"}).
</p>
This should only be invoked once at the very end of the schema generation process.

@param designatedDefinitionPath the designated path to the returned definitions node, to be used in generated references
@return object node containing common schema definitions
@see #createSchemaReference(Type, Type...)
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/SchemaBuilder.java