void () { EditorSettings editorSettings = myEditor.getSettings(); if (editorSettings instanceof SettingsImpl) { ((SettingsImpl)editorSettings).setUseSoftWrapsQuiet(); } else { LOG.error(new IllegalStateException("Unexpected implementation class of editor settings: " + "class=" + editorSettings.getClass() + "editor=" + myEditor)); } myEditor.putUserData(EditorImpl.FORCED_SOFT_WRAPS, Boolean.TRUE); myUseSoftWraps = areSoftWrapsEnabledInEditor(); Project project = myEditor.getProject(); VirtualFile file = myEditor.getVirtualFile(); if (project != null && file != null) { EditorNotifications.getInstance(project).updateNotifications(file); } ApplicationManager.getApplication().invokeLater(() -> ActivityTracker.getInstance().inc()); }