debugAnchors(what, json) {
        if (!this.hass.debugAnchors) {
            return;
        }

        Logger.debug("Failed " + what + " for Hass component of type " + this.componentType + " and id " + this.componentId + " due to the following unresolved anchors");
        for (const anchor of this.getAllAnchors(json)) {
            if (anchor.getValue() === null) {
                Logger.debug(" - type " + anchor.getType() + " subtype " + anchor.getSubType());
            }
        }

        try {
            // noinspection ExceptionCaughtLocallyJS
            throw new Error("See stack trace");
        } catch (err) {
            Logger.debug(err);
        }
    }
Helper function for debugging incorrect anchor usage during development. Enable with debug.debugHassAnchors

@private
@param {string} what What was being done by whowever called this function
@param {object} json Object with unresolved anchors