code: public List<DetailParam> getParameterFromMethodWithAnnotation(Class<?> parentClass, Method method, Class<?> annotationClass) {
          List<DetailParam> params = new ArrayList<>();
          if (method.getParameterCount() < 1) {
              return params;
          }
  
          for (Parameter param : method.getParameters()) {
  
              Annotation[] annotations = param.getAnnotations();
  
              for (Annotation annotation : annotations) {
                  if (annotation.annotationType().equals(annotationClass)) {
                      params.add(new DetailParam(param.getType(), method, parentClass));
                      break;
                  }
              }
          }
          return params;
      }
docs: Gets parameter from method with annotation.
  
  @param parentClass     the parent class
  @param method          the method
  @param annotationClass the annotation class
  @return the parameter from method with annotation