Section 46B. The supreme judicial court and the superior court shall have concurrent jurisdiction in equity, upon petition of any bar association within the commonwealth, or of three or more members of the bar of the commonwealth, or of the attorney general, or of the district attorney within his district, to restrain violations of section forty-six, forty-six A or forty-six C.