The district court that has jurisdiction over the locality of the land that is the object of a land leasehold right has jurisdiction over the cases prescribed in Article 17, paragraph (1), paragraph (2), or paragraph (5) (including as applied mutatis mutandis pursuant to Article 18, paragraph (3)), Article 18, paragraph (1), Article 19, paragraph (1) (including as applied mutatis mutandis pursuant to paragraph (7) of that Article), or paragraph (3) (including as applied mutatis mutandis pursuant to paragraph (7) of that Article and Article 20, paragraph (2) (including as applied mutatis mutandis pursuant to paragraph (5) of that Article)), or Article 20, paragraph (1) (including as applied mutatis mutandis pursuant to paragraph (5) of that Article); provided, however, that this does not preclude the summary court that has jurisdiction over the locality from exercising jurisdiction, if the parties have reached an agreement.