code: public static Parameter[] fromMethod(Method method) {
          Class<?>[] types = method.getParameterTypes();
          Annotation[][] annotations = method.getParameterAnnotations();
          int numParams = types.length;
          Parameter[] params = new Parameter[numParams];
  
          for (int p = 0; p < numParams; p++) {
              params[p] = new Parameter(types[p], annotations[p]);
          }
          return params;
      }
docs: Returns an array of Parameter objects that represent all the parameters to the underlying method