code: private static void getMethodsRecursive(Class<?> service, List<Method> methods) {
      Collections.addAll(methods, service.getDeclaredMethods());
    }
docs: Fills {@code proxiedMethods} with the methods of {@code interfaces} and
  the interfaces they extend. May contain duplicates.