Details: How is \Magento\Tax\Model\Config::discountTax() implemented and used?
\Magento\Tax\Model\Config::discountTax()
See also:
How to setup the «Apply Customer Tax» option in accordance with the Russian tax law?