public static CompletableFuture<Boolean> isObsolete(Method method) {
    if (method instanceof MethodImpl && isAsyncEnabled()) {
      return reschedule(((MethodImpl)method).isObsoleteAsync());
    }
    return toCompletableFuture(() -> method.isObsolete());
  }
public static CompletableFuture<Boolean> isObsolete(Method method)