static setElementValue(element, value = null) {
        if (element.tagName.toLowerCase() === 'input') {
            element.value = value;
        } else {
            element.textContent = value;
        }
    }
Modify the element value directly.

@param {HTMLElement|HTMLInputElement} element
@param {number|string|null} value