; (II) the duration of the noncitizen’s residence in the United States; (III) evidence of rehabilitation, if applicable; and (IV) the extent to which the noncitizen’s removal, or the denial of the noncitizen’s application, would adversely affect the noncitizen or the noncitizen’s United States citizen or lawful permanent resident family members. (2) Noncitizens in certain immigration statuses (A) In general A noncitizen shall be ineligible for status under sections 245B, 245C, 245D, 245E, and 245F if on January 1, 2023, the noncitizen was any of the following: (i) A lawful permanent resident. (ii) A noncitizen admitted as a refugee under section 207 or granted asylum under section 208. (iii) A noncitizen who, according to the records of the Secretary or the Secretary of State, is in a period of authorized stay in a nonimmigrant status described in section 101(a)(15)(A), other than— (I) a spouse or a child of a noncitizen eligible for status under section 245B, 245C, 245D, 245E, or 245F; (II) a noncitizen considered to be in a nonimmigrant status solely by reason of section 702 of the Consolidated Natural Resources Act of 2008 ( Public Law 110–229 ; 122 Stat. 854) or section 244(f)(4) of this Act; (III) a nonimmigrant described in section 101(a)(15)(H)(ii)(a)