@Override
	@Nullable
	public String[] getParameterNames(Method method) {
		String[] params = super.getParameterNames(method);
		if (ArrayUtils.isEmpty(params) || Objects.requireNonNull(params).length != method.getParameters().length)
			params = standardReflectionParameterNameDiscoverer.getParameterNames(method);
		return params;
	}
The Standard reflection parameter name discoverer.
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/discoverer/SpringDocParameterNameDiscoverer.java