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