public JsonObject toJson(StackTracePrinter tracePrinter) {
        return new JObject()
                .add("type", getType().toString())
                .add("origin", this.origin.name().toLowerCase(Locale.ROOT))
                .add("who", new JObject()
                        .add("identifier", this.checkTarget.describe())
                        .add("type", this.checkTarget.getType())
                        .add("name", this.checkTarget.getName())
                        .consume(obj -> {
                            UUID uuid = this.checkTarget.getId();
                            if (uuid != null) {
                                obj.add("uuid", uuid.toString());
                            }
                        })
                )
                .add("queryMode", this.checkQueryOptions.mode().name().toLowerCase(Locale.ROOT))
                .consume(obj -> {
                    if (this.checkQueryOptions.mode() == QueryMode.CONTEXTUAL) {
                        obj.add("context", new JArray()
                                .consume(arr -> {
                                    for (Context contextPair : Objects.requireNonNull(this.checkQueryOptions.context())) {
                                        arr.add(new JObject().add("key", contextPair.getKey()).add("value", contextPair.getValue()));
                                    }
                                })
                        );
                    }
                })
                .add("time", this.checkTime)
                .add("trace", new JArray()
                        .consume(arr -> {
                            int overflow = tracePrinter.process(getCheckTrace(), StackTracePrinter.elementToString(arr::add));
                            if (overflow != 0) {
                                arr.add("... and " + overflow + " more");
                            }
                        })
                )
                .add("thread", this.checkThread)
                .consume(this::serializeTo)
                .toJson();
    }
The name of the thread where the check took place
common/src/main/java/me/lucko/luckperms/common/verbose/event/VerboseEvent.java