private boolean shouldAddReferenceForExistingDefinition(GenericTypeDetails typeDetails) {
        return !typeDetails.isInlineDefinition()
               && this.containsDefinition(typeDetails.getScope().getType(), typeDetails.getIgnoredDefinitionProvider());
    }
Preparation Step: add the given target type. Also catering for forced inline-definitions and ignoring custom definitions.

@param targetNode node in the JSON schema that should represent the targetType
@param typeDetails details of the target type to generate subschema for
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/impl/SchemaGenerationContextImpl.java