; or (B) committed to any mental institution, and— (i) in the case of a voluntary commitment— (I) has been determined by a mental health professional, in accordance with section 5(c) of the End Purchase of Firearms by Dangerous Individuals Act of 2017 , to present a danger to others; and (II) is serving a period of commitment at such institution; (ii) in the case of a temporary involuntary commitment or hold through a process established pursuant to section 2(a)(1)(B) of the End Purchase of Firearms by Dangerous Individuals Act of 2017 — (I) has been determined by a mental health professional, in accordance with section 5(c) of the End Purchase of Firearms by Dangerous Individuals Act of 2017 , to present a danger to others; and (II) is serving a period of commitment at such institution, or has been released from such institution for a period of less than 5 years; or (iii) in the case of a formal commitment by a court, board, commission, or other lawful authority, is serving a period of commitment at such institution, or has been released from such institution; ; (B) in paragraph (8), by striking or at the end; (C) in paragraph (9), by striking the period at the end and inserting ; or ; and (D) by inserting after paragraph (9), the following new paragraph: (10) during the prior 6-month period, has communicated to a mental health professional a serious threat to commit an act of physical violence against another identifiable person. ; and (2) in subsection (g)— (A) by amending paragraph (4) to read as follows: (4) who has been— (A) adjudicated as a mental defective; or (B) committed to any mental institution, and— (i) in the case of a voluntary commitment— (I) has been determined by a mental health professional, in accordance with section 5(c) of the End Purchase of Firearms by Dangerous Individuals Act of 2017 , to present a danger to others; and (II) is serving a period of commitment at such institution