for distributions from IRAs For purposes of the Internal Revenue Code of 1986, if a contribution is made pursuant to subparagraph (A) with respect to a qualified wildfire distribution from an individual retirement plan (as defined by section 7701(a)(37) of such Code), then, to the extent of the amount of the contribution, the qualified wildfire distribution shall be treated as a distribution described in section 408(d)(3) of such Code and as having been transferred to the eligible retirement plan in a direct trustee to trustee transfer within 60 days of the distribution. (4) Definitions For purposes of this subsection— (A) Qualified wildfire distribution Except as provided in paragraph (2), the term qualified wildfire distribution means any distribution from an eligible retirement plan made on or after October 8, 2017, and before January 1, 2019, to an individual whose principal place of abode on October 8, 2017, is located in the California wildfire disaster area and who has sustained an economic loss by reason of the wildfires to which the declaration of such area relates. (B) Eligible retirement plan The term eligible retirement plan shall have the meaning given such term by section 402(c)(8)(B) of the Internal Revenue Code of 1986. (5) Income inclusion spread over 3-year period (A) In general In the case of any qualified wildfire distribution, unless the taxpayer elects not to have this paragraph apply for any taxable year, any amount required to be included in gross income for such taxable year shall be so included ratably over the 3-taxable-year period beginning with such taxable year. (B) Special rule For purposes of subparagraph (A), rules similar to the rules of subparagraph (E) of section 408A(d)(3) of the Internal Revenue Code of 1986 shall apply. (6) Special rules (A) Exemption of distributions from trustee to trustee transfer and withholding rules For purposes of sections 401(a)(31), 402(f), and 3405 of the Internal Revenue Code of 1986, qualified wildfire distributions shall not be treated as