; (II) the duration of the alien’s residence in the United States; (III) evidence of rehabilitation, if applicable; and (IV) the extent to which the alien’s removal, or the denial of the alien’s application, would adversely affect the alien or the alien’s United States citizen or lawful permanent resident family members. (2) Aliens in certain immigration statuses An alien shall be ineligible for adjustment of status under this section if, on January 1, 2023, the alien was any of the following: (A) An alien lawfully admitted for permanent residence. (B) An alien admitted as a refugee under section 207 or granted asylum under section 208. (C) An alien who, according to the records of the Secretary or the Secretary of State, was in a period of authorized stay in a nonimmigrant status described in section 101(a)(15), other than— (i) the spouse, son, or daughter of an alien who is eligible for status under this section; (ii) an alien who is 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); and (iv) a nonimmigrant who is described in subsection (b). (D) An alien paroled into the Commonwealth of the Northern Mariana Islands or Guam who did not reside in the Commonwealth or Guam on November 28, 2009. (3) Certain aliens outside the United States and unlawful reentrants An alien shall be ineligible for adjustment of status under this section if the alien— (A) departed the United States while subject to an order of exclusion, deportation, removal, or voluntary departure; and (B) (i) was outside the United States on January 1, 2023