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