code: public static MethodHelpDto fromMethodClass(String parentPath, Method method) {
          String methodName = _getHttpMethod(method);
          Path path = method.getAnnotation(Path.class);
          Description description = method.getAnnotation(Description.class);
          Produces produces = method.getAnnotation(Produces.class);
          Consumes consumes = method.getAnnotation(Consumes.class);
  
          if ((path == null || !path.value().contains("help")) && description != null) {
              String relativePath = path == null ? "" : path.value();
              String fullPath = parentPath == null ? relativePath : parentPath + relativePath;
              MethodHelpDto result = new MethodHelpDto();
  
              result.setDescription(description.value());
              result.setMethod(methodName);
              result.setPath(fullPath);
              if (produces != null) {
                  result.setProduces(produces.value());
              }
              if (consumes != null) {
                  result.setConsumes(consumes.value());
              }
  
              List<MethodParameterDto> params = _getMethodParams(method);
  
              result.setParams(params);
              return result;
          } else {
              return null;
          }
      }
docs: Creates a method help DTO from a method object.
  
  @param   parentPath  The parent method path.
  @param   method      The method to convert.
  
  @return  The method help DTO.