code: public static MethodParameter createMethodParameter(Parameter parameter) {
  		Parameter[] parameters = parameter.getDeclaringExecutable().getParameters();
  		for (int i = 0; i < parameters.length; i++) {
  			if (parameters[i].equals(parameter)) {
  				return createMethodParameter(parameter.getDeclaringExecutable(), i);
  			}
  		}
  		throw new AssertionError("Can't happen");
  	}
docs: Convert from JDK {@link Parameter} to Spring {@link MethodParameter}.