CompletableFuture<List<Method>> (ReferenceType type) { if (type instanceof ReferenceTypeImpl && isAsyncEnabled()) { return reschedule(((ReferenceTypeImpl)type).allMethodsAsync()); } return completedFuture(type.allMethods()); }