ii. it is received under section 508 to the extent that that section refers to section 506 and,(1) if the share is held by an individual other than a trust, the dividend is received by the individual,
(2) if the share is held by a corporation, the dividend is received by the corporation while it is a private corporation, and is paid by another private corporation,
(3) if the share is held by a trust, the dividend is received by the trust or designated under section 666 by the trust in respect of a beneficiary and the beneficiary is a person described in the second paragraph, a partnership each of the members of which is, when the dividend is received, a person described in the second paragraph, or another trust or partnership if the trust establishes that the dividend is received by a person described in the second paragraph, or
(4) if the share is held by a partnership, the dividend is included in the income of a member of the partnership and the member is a person described in the second paragraph or the dividend is designated under section 666 by a member of the partnership that is a trust in respect of a beneficiary described in subparagraph 3.