public static TristateResult forMonitoredResult(Tristate result) {
        switch (result) {
            case TRUE:
                return TRUE;
            case FALSE:
                return FALSE;
            case UNDEFINED:
                return UNDEFINED;
            default:
                throw new AssertionError();
        }
    }
The permission processor that provided the result
common/src/main/java/me/lucko/luckperms/common/cacheddata/result/TristateResult.java