For the purposes of this section, "no-contest provision" includes a "no-contest provision," "in terrorem provision" or "forfeiture provision" of a trust instrument. A "no-contest provision" means a provision that, if given effect, would reduce or eliminate the interest of any beneficiary of the trust who, directly or indirectly, initiates or otherwise pursues:
With regard to whether the beneficiary sought, received or relied upon legal counsel, a no-contest provision shall be enforceable according to the express terms of the no-contest provision without regard to the beneficiary's good or bad faith in taking the action that would justify the complete or partial forfeiture of the beneficiary's interest in the trust under the terms of the no-contest provision unless probable cause exists for the beneficiary taking such action on the grounds of:
Fraud;
Duress;
Revocation;
Lack of testamentary capacity;
Subsection (b) shall not apply to:
Any action brought solely to challenge the acts of the trustee or other fiduciary of the trust to the extent that the trustee or other fiduciary has committed a breach of fiduciary duties or breach of trust;
Any action brought by the trustee or any other fiduciary serving under the terms of the trust, unless the trustee or other fiduciary is a beneficiary against whom the no-contest provision is otherwise enforceable;
Any agreement among the beneficiaries and any other interested persons in settlement of a dispute or resolution of any other matter relating to the trust, including, without limitation, any nonjudicial settlement agreement;
Any action to determine whether a proposed or pending motion, petition, or other proceeding constitutes a contest within the meaning of a no-contest provision;
Any action brought by a beneficiary or on behalf of any such beneficiary for a construction or interpretation of the terms of the trust; or
Any action brought by the Attorney General for a construction or interpretation of a charitable trust or a trust containing a charitable interest if a provision exists in a trust purporting to penalize a charity or charitable interest for contesting the trust if probable cause exists for instituting proceedings.
Pursuant to this section, courts shall enforce the settlor's intent as reflected in a no-contest provision to the greatest extent possible.