void () { String oldFormatOnSaveProperty = "format.on.save"; boolean formatAllOld = PropertiesComponent.getInstance(myProject).getBoolean(oldFormatOnSaveProperty); if (formatAllOld) { setRunOnSaveEnabled(true); setRunForAllFileTypes(); } PropertiesComponent.getInstance(myProject).unsetValue(oldFormatOnSaveProperty); }