private static Optional<String> resolveName(Parameter parameter, Schema schema) {
		if (parameter != null) {
			return resolveNameFromParameter(parameter);
		}
		if (schema != null) {
			return resolveNameFromSchema(schema);
		}
		return Optional.empty();
	}
From getter of field stream.

@param paramClass      the param class
@param field           the field
@param fieldNamePrefix the field name prefix
@param parentRequired  whether the field that holds the class currently being examined was required or optional
@return the stream
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/extractor/MethodParameterPojoExtractor.java