void () { doMemberTest(InspectionGadgetsBundle.message("smth.unnecessary.remove.quickfix", "break"), """ public void printName(String name) { switch (name) { case "A" -> { System.out.println("A"); break/**/; // reports 'break' statement is unnecessary } default -> { System.out.println("Default"); break; // reports 'break' statement is unnecessary } } } """, """ public void printName(String name) { switch (name) { case "A" -> { System.out.println("A"); // reports 'break' statement is unnecessary } default -> { System.out.println("Default"); break; // reports 'break' statement is unnecessary } } } """ ); }