void () { myEditorManager.getUnsavedEditors().forEach(editorInfo -> { VirtualFile file = editorInfo.getFile(); Document document = documentManager.getDocument(file); if (document != null) { documentManager.reloadFromDisk(document); } }); }