private Class findType(RequestMethod requestMethod, DataRestRepository dataRestRepository) {
		if (ControllerType.ENTITY.equals(dataRestRepository.getControllerType())
				&& Arrays.stream(requestMethodsEntityModel).anyMatch(requestMethod::equals))
			return EntityModel.class;
		else if (ControllerType.PROPERTY.equals(dataRestRepository.getControllerType())) {
			if (dataRestRepository.isCollectionLike())
				return CollectionModel.class;
			else if (dataRestRepository.isMap())
				return MapModel.class;
			else
				return EntityModel.class;
		}
		else
			return RepresentationModel.class;
	}
Find type class.

@param requestMethod      the request method
@param dataRestRepository the data rest repository
@return the class
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/data/DataRestResponseService.java