void () { doTest(InspectionGadgetsBundle.message("smth.unnecessary.remove.quickfix", "return"), """ class X { public X(String name) { if (!"foo".equals(name)) { System.out.println(name); return/**/; } } } """, """ class X { public X(String name) { if (!"foo".equals(name)) { System.out.println(name); } } } """ ); }