Any provision in an instrument relative to the ownership or use of real property which purports to forbid or unreasonably restrict the installation or use of a solar energy system as defined in section one A of chapter forty A or the building of structures that facilitate the collection of solar energy shall be void.
Mass. Gen. Laws ch. 184, § 23C