The liens and preferences given by ss. 779.35 to 779.38 may be foreclosed in the same manner as mechanics' liens, and all provisions of these statutes relating to the foreclosure thereof shall apply to the foreclosure of the liens so given, so far as such provisions are applicable.
Wis. Stat. § 779.39