void () { assertQuickfixNotAvailable(InspectionGadgetsBundle.message("smth.unnecessary.remove.quickfix", "synchronized"), """ class X { public void printName(String lock) { synchronized(lock) { System.out.println(lock); } } } """); }