In general
Gross income does not include any amount which (but for this subsection) would be includible in gross income by reason of the discharge (in whole or in part) of indebtedness of the taxpayer if—
(A)#
the discharge occurs in a title 11 case,
(B)#
the discharge occurs when the taxpayer is insolvent,
(C)#
the indebtedness discharged is qualified farm indebtedness,
(D)#
in the case of a taxpayer other than a C corporation, the indebtedness discharged is qualified real property business indebtedness, or
(E)#
the indebtedness discharged is qualified principal residence indebtedness which is discharged—
(i) before January 1, 2026 , or
(ii) subject to an arrangement that is entered into and evidenced in writing before January 1, 2026 .
(E)(i)#
before January 1, 2026 , or
(E)(ii)#
subject to an arrangement that is entered into and evidenced in writing before January 1, 2026 .