private static Stream<MethodParameter> extractFrom(Class<?> clazz, String fieldNamePrefix, boolean parentRequired) {
		return allFieldsOf(clazz).stream()
				.filter(field -> !field.getType().equals(clazz))
				.flatMap(f -> fromGetterOfField(clazz, f, fieldNamePrefix, parentRequired))
				.filter(Objects::nonNull);
	}
Extract from stream.

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