private JsonNode createMethodSchema(MemberDetails<MethodScope> methodDetails) {
        if (methodDetails.getScope().isVoid()) {
            // since 4.35.0: support custom definitions for void methods
            CustomDefinition customDefinition = this.generatorConfig.getCustomDefinition(methodDetails.getScope(), this,
                    methodDetails.getIgnoredDefinitionProvider());
            if (customDefinition == null) {
                return BooleanNode.FALSE;
            }
        }
        ObjectNode subSchema = this.generatorConfig.createObjectNode();
        ObjectNode methodAttributes = AttributeCollector.collectMethodAttributes(methodDetails.getScope(), this);
        this.populateMemberSchema(subSchema, methodDetails, methodAttributes);
        return subSchema;
    }
Preparation Step: create a node for a schema representing the given method's associated return type.

@param methodDetails details for method to populate schema for
@return schema node representing the given method's return type
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/impl/SchemaGenerationContextImpl.java