Notwithstanding any provision to the contrary in the governing instrument or under any other law of this state and except as otherwise provided by judgment of a court or by a provision of the governing instrument, which in either case is entered or made after October 1, 1971, and expressly limits the applicability of this article, the trustee of a trust, whenever created, which is or is treated as a private foundation as defined in Section 509 of the Internal Revenue Code of 1954, a charitable trust as defined in Section 4947(a)(1) of the Internal Revenue Code of 1954, or a split-interest trust as defined in Section 4947(a)(2) of the Internal Revenue Code of 1954, during the period it is or is treated as a private foundation, charitable trust or split-interest trust as so defined:
(1) Shall not engage in any act of self-dealing as defined in Section 4941(d) thereof;
(2) Shall distribute for each taxable year not less than such amounts at such time and in such manner as not to subject the trust to the tax on undistributed income imposed by Section 4942 thereof;
(3) Shall not, if Section 4943 thereof is applicable, retain any excess business holdings as defined in subsection (c) of that section beyond the period permitted by that section;
(4) Shall not make any investment in such manner as to subject the trust to tax under Section 4944 thereof; and
(5) Shall not make any taxable expenditure as defined in Section 4945(d) thereof.