If any foreign insurance company, of any name, kind, or description, authorized to do business in this state shall provide in its charter or bylaws, or in the policies or contracts of insurance issued by it, that no action shall be brought against the company in any court of competent jurisdiction within this state, the insurance commissioner shall revoke all licenses and certificates of authority granted to it or to its insurance producers to do business in this state.
R.I. Gen. Laws § 27-2-15