code: private static List<Method> requestMappingMethods(Object object) {
          return getAllMethods(object.getClass(), withModifier(Modifier.PUBLIC))
                  .stream()
                  // Lookup super classes just in case if the object is a proxy.
                  .filter(m -> getAnnotations(m, FindOption.LOOKUP_SUPER_CLASSES)
                          .stream()
                          .map(Annotation::annotationType)
                          .anyMatch(a -> a == Path.class ||
                                         HTTP_METHOD_MAP.containsKey(a)))
                  .sorted(Comparator.comparingInt(AnnotatedHttpServiceFactory::order))
                  .collect(toImmutableList());
      }
docs: Returns the list of {@link Path} annotated methods.