static <T> void setResult(@NotNull AsyncPromise<T> promise, @Nullable Object result) {
    //noinspection unchecked
    promise.setResult((T)result);
  }
static <T> void setResult(@NotNull AsyncPromise<T> promise, @Nullable Object result)