public boolean containsDefinition(ResolvedType javaType, CustomDefinitionProviderV2 ignoredDefinitionProvider) {
        return this.definitions.containsKey(new DefinitionKey(javaType, ignoredDefinitionProvider));
    }
Whether this context (already) contains a definition for the specified type, considering custom definition providers after the specified one.

@param javaType type to check for
@param ignoredDefinitionProvider first custom definition provider that was ignored when creating the definition (is null in most cases)
@return whether a definition for the given type is already present
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/impl/SchemaGenerationContextImpl.java