private Type getTypeForCollectionModel(Class returnedEntityType, boolean pagingResource) {
		if (pagingResource)
			return resolveGenericType(PagedModel.class, EntityModel.class, returnedEntityType);
		else
			return resolveGenericType(CollectionModel.class, EntityModel.class, returnedEntityType);
	}
Gets type for collection model.

@param returnedEntityType the returned entity type
@param pagingResource     the paging resource
@return the type for collection model
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/data/DataRestResponseService.java