No injunction shall be granted by any court or judge in this state (1) to restrain the collection of any tax, or any part thereof, or (2) to restrain the sale of any property for the nonpayment of any such tax.
No person shall be permitted to recover by replevin, or other process, any property taken or restrained by the county treasurer for the nonpayment of any tax, except such tax or the part thereof enjoined in case of injunction, levied or assessed for illegal or unauthorized purpose.
No injunction shall be granted or recovery by replevin shall be permitted unless the person has first successfully argued before a court of competent jurisdiction that the tax levied or collected was levied or assessed for illegal or unauthorized purpose.
Neb. Rev. Stat. §§ 77-1727