void () { @NonNls final String text = "class S { JFrame x; <caret> }"; configureByText(text); boolean isInContent = true; assertFalse(DaemonListeners.canChangeFileSilently(getFile(), isInContent, ThreeState.UNSURE)); doHighlighting(); assertFalse(DaemonListeners.canChangeFileSilently(getFile(), isInContent, ThreeState.UNSURE)); type(" "); assertTrue(DaemonListeners.canChangeFileSilently(getFile(), isInContent, ThreeState.UNSURE)); UndoManager.getInstance(getProject()).undo(TextEditorProvider.getInstance().getTextEditor(getEditor())); assertFalse(DaemonListeners.canChangeFileSilently(getFile(), isInContent, ThreeState.UNSURE)); }