void () { // return default value to avoid unnecessary save DaemonCodeAnalyzerSettings.getInstance().setImportHintEnabled(true); String text = "class S { ArrayList<caret>XXX x;}"; configureByText(JavaFileType.INSTANCE, text); assertNotEmpty(highlightErrors()); GeneralSettings settings = GeneralSettings.getInstance(); boolean frameSave = settings.isSaveOnFrameDeactivation(); settings.setSaveOnFrameDeactivation(true); StoreUtilKt.runInAllowSaveMode(true, () -> { try { StoreUtil.saveDocumentsAndProjectsAndApp(false); checkDaemonReaction(false, () -> StoreUtil.saveDocumentsAndProjectsAndApp(false)); } finally { settings.setSaveOnFrameDeactivation(frameSave); } return Unit.INSTANCE; }); }