When any amount of inheritance tax shall have been paid erroneously to the county treasurer, he shall, upon a finding by the court and an order rendered to him of the erroneous payment, refund and pay to the executor, administrator or trustee, person or persons who have paid any such tax in error the amount of such tax so paid. All applications for the repayment of the tax shall be made to the county court within two years of the date of payment. The county court shall hear all evidence relevant to its finding whether or not any amount of inheritance tax has been erroneously paid and if any refund of such payment is due. The court shall notify the county treasurer of its final determination.