void (@NotNull VcsDirtyScope dirtyScope, @NotNull ChangeListManagerGate addGate, @NotNull SvnChangeProviderContext context) { FileDocumentManager fileDocumentManager = FileDocumentManager.getInstance(); for (Document unsavedDocument : fileDocumentManager.getUnsavedDocuments()) { final VirtualFile file = fileDocumentManager.getFile(unsavedDocument); if (file != null && dirtyScope.belongsTo(VcsUtil.getFilePath(file)) && fileDocumentManager.isFileModified(file)) { final FileStatus status = addGate.getStatus(file); if (status == null || FileStatus.NOT_CHANGED.equals(status)) { context.addModifiedNotSavedChange(file); } } } }