private Parameter getParameterFromAnnotations(OpenAPI openAPI, MethodAttributes methodAttributes, Method method, String pName) {
		Parameter parameter = null;
		for (java.lang.reflect.Parameter reflectParameter : method.getParameters()) {
			Param paramAnnotation = reflectParameter.getAnnotation(Param.class);
			if (paramAnnotation != null && paramAnnotation.value().equals(pName)) {
				io.swagger.v3.oas.annotations.Parameter parameterDoc = AnnotatedElementUtils.findMergedAnnotation(
						AnnotatedElementUtils.forAnnotations(reflectParameter.getAnnotations()),
						io.swagger.v3.oas.annotations.Parameter.class);
				if (parameterDoc != null && (!parameterDoc.hidden() || parameterDoc.schema().hidden())) {
					parameter = dataRestRequestService.buildParameterFromDoc(parameterDoc, openAPI.getComponents(), methodAttributes.getJsonViewAnnotation(), methodAttributes.getLocale());
					parameter.setName(pName);
				}
			}
		}
		return parameter;
	}
Update parameter from annotations parameter.

@param openAPI          the open api
@param methodAttributes the method attributes
@param method           the method
@param pName            the p name
@return the parameter
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/data/DataRestOperationService.java