code: public Hints findHint(Method method) {
          Hints hints = new Hints();
          for (Annotation annotation : method.getDeclaredAnnotations()) {
              findAllow(hints, annotation);
              findFormats(hints, annotation);
          }
          return hints;
      }
docs: Finds the JSON-HOME hints on the given method.
  
  @param method the method to scan
  @return the hints