private static Optional<String> resolveNameFromParameter(Parameter parameter) {
		if (parameter.name().isEmpty()) {
			return Optional.empty();
		}
		return Optional.of(parameter.name());
	}
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