static set(domElementOrSelector, newValue, options = null, saveChangeToHistory = true) {
        const domElement = AutoNumericHelper.domElement(domElementOrSelector);

        if (!this.isManagedByAutoNumeric(domElement)) {
            let showWarnings;
            if (!AutoNumericHelper.isNull(options) && Object.prototype.hasOwnProperty.call(options, 'showWarnings')) {
                showWarnings = options.showWarnings;
            } else {
                showWarnings = true;
            }

            AutoNumericHelper.warning(`Impossible to find an AutoNumeric object for the given DOM element or selector.`, showWarnings);

            return null;
        }

        return this.getAutoNumericElement(domElement).set(newValue, options, saveChangeToHistory);
    }
Set the given element value, and format it immediately.
Return `null` if no AutoNumeric object is found, else, return the AutoNumeric object.

@param {HTMLElement|string} domElementOrSelector Either a DOM element reference, or a selector string can be used
@param {number|string|null} newValue The value must be a Number, a numeric string or `null` (if `emptyInputBehavior` is set to `'null'`)
@param {object} options A settings object that will override the current settings. Note: the update is done only if the `newValue` is defined.
@param {boolean} saveChangeToHistory If set to `true`, then the change is recorded in the history table
@returns {AutoNumeric|null}