All persons found in or upon premises used for prostitution, assignation or lewdness may be required by a justice of a court of record to recognize, with or without sureties, to appear as witnesses at any hearing in an action to punish a person for keeping or maintaining such a nuisance as is described in section four, or for aiding in the maintenance of such a nuisance in the manner set forth in section twenty, or to enjoin or abate such a nuisance, and a warrant may be issued to bring such persons before the justice to recognize as aforesaid.
Mass. Gen. Laws ch. 139, § 13