public ObjectNode createSchemaReference(Type targetType, Type... typeParameters) {
        ResolvedType resolvedTargetType = this.typeContext.resolve(targetType, typeParameters);
        ObjectNode node = this.generationContext.createDefinitionReference(resolvedTargetType);
        this.schemaNodes.add(node);

        this.config.resetAfterSchemaGenerationFinished();
        return node;
    }
Generate an {@link ObjectNode} placeholder for the given type and add all referenced/encountered types to this builder instance.
<br>
This may be invoked multiple times (even for the same type) until the schema generation is being completed via
{@link #collectDefinitions(String)}.

@param targetType type for which to generate the JSON Schema placeholder
@param typeParameters optional type parameters (in case of the {@code mainTargetType} being a parameterised type)
@return JSON Schema placeholder (maybe be empty until {@link #collectDefinitions(String)} is being invoked)
@see #collectDefinitions(String)
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/SchemaBuilder.java