Get the included tax price and excluded tax price of an lineItem object

I struggling to get the price including taxes and the price without taxes for an lineItem object. I think that I might needs to do something with a TaxCalculator and/or TaxRules but I cannot figure out how.

Does anybody have some sample code?