function getDeprecatedTag(data, reference) {
    try {
        if (data.includes(statics.SWAGGER_TAG + '.deprecated')) {
            let deprecated = data.split(new RegExp(statics.SWAGGER_TAG + '.deprecated' + '\\s*\\=\\s*'))[1];
            deprecated = deprecated.split(new RegExp('\\s|\\n|\\t|\\;'))[0];
            if (deprecated && deprecated.toLowerCase() === 'true') {
                return true;
            }
        }
        return false;
    } catch (err) {
        if (!getDisableLogs()) {
            console.error(`[swagger-autogen]: '${statics.SWAGGER_TAG}.deprecated' out of structure in\n'${reference.filePath}' ... ${reference.predefPattern}.${reference.method}('${reference.path}', ...)`);
        }
        return false;
    }
}
Search for #swagger.deprecated = true   (by default is false)
@param {*} data