A derivative proceeding or a shareholder class action may not be discontinued or settled without the court's approval. If the court determines that a proposed discontinuance or settlement will substantially affect the interests of the corporation's shareholders or a class of shareholders, the court shall direct that notice be given to the shareholders affected.
N.J.S. § 14A:3-6.6