; and (B) if such loan was made— (i) to any borrower who, before July 1, 2017, had an outstanding balance on a student loan made, insured, or guaranteed under this part or part B, may require the borrower to repay the loan pursuant to an income contingent repayment plan, as described in paragraph (1)(D), or an income-based repayment plan, as described in paragraph (1)(E); or (ii) to a new borrower (as defined in section 493E(a)(5)), may provide the borrower the option to enroll in the repayment plan described in paragraph (2)(B). (7) Applicability provision (A) In general Except as provided in paragraph (5) and subparagraph (B), the repayment plans under subparagraphs (B), (C), (D), and (E) of paragraph (1) are not available for a borrower who received the borrower's first disbursement of a Federal Direct Loan on or after July 1, 2017. (B) Exception The repayment plans available to a borrower of a Federal Direct PLUS Loan made on behalf of a dependent student or a Federal Direct Consolidation Loan whose proceeds were used to discharge the liability of a Federal Direct PLUS Loan made on behalf of a dependent student or a loan under section 428B made on behalf of a dependent student on or after July 1, 2015, shall be those described under subparagraphs (A), (B), and (C) of paragraph (1). ; and (2) in subsection (m)— (A) in paragraph (1)— (i) in the paragraph heading, by striking In general and inserting Borrowers before July 1, 2017 ; and (ii) in the matter preceding subparagraph (A), by striking The Secretary and inserting Except as provided in paragraph (5), the Secretary ; (B) in paragraph (2), by inserting or (5) after paragraph (1)