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