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