private RequestMethod[] getMethod(Set<HttpMethod> methods) {
		if (!CollectionUtils.isEmpty(methods)) {
			return methods.stream().map(this::getRequestMethod).toArray(RequestMethod[]::new);
		}
		return ArrayUtils.toArray();
	}
Get method request method [ ].

@param methods the methods
@return the request method [ ]
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/fn/RouterFunctionData.java