diff --git a/platform/configuration-store-impl/src/ProjectSaveSessionProducerManager.kt b/platform/configuration-store-impl/src/ProjectSaveSessionProducerManager.kt index 6e565ba1320f..8fc71099f091 100644 --- a/platform/configuration-store-impl/src/ProjectSaveSessionProducerManager.kt +++ b/platform/configuration-store-impl/src/ProjectSaveSessionProducerManager.kt @@ -7,7 +7,7 @@ import com.intellij.openapi.application.runReadAction import com.intellij.openapi.components.impl.stores.IComponentStore import com.intellij.openapi.components.impl.stores.SaveSessionAndFile import com.intellij.openapi.project.Project -import com.intellij.openapi.project.impl.ProjectManagerImpl +import com.intellij.openapi.project.impl.ProjectManagerImpl.UnableToSaveProjectNotification import com.intellij.openapi.vfs.ReadonlyStatusHandler import com.intellij.openapi.vfs.VirtualFile import com.intellij.util.containers.mapSmart @@ -54,17 +54,16 @@ internal class ProjectSaveSessionProducerManager(private val project: Project) : private fun dropUnableToSaveProjectNotification(project: Project, readOnlyFiles: List) { val notifications = getUnableToSaveNotifications() if (notifications.isEmpty()) { - Notifications.Bus.notify( - ProjectManagerImpl.UnableToSaveProjectNotification(project, readOnlyFiles), project) + Notifications.Bus.notify(UnableToSaveProjectNotification(project, readOnlyFiles), project) } else { notifications[0].setFiles(readOnlyFiles) } } - private fun getUnableToSaveNotifications(): Array { + private fun getUnableToSaveNotifications(): Array { return NotificationsManager.getNotificationsManager() - .getNotificationsOfType(ProjectManagerImpl.UnableToSaveProjectNotification::class.java, project) + .getNotificationsOfType(UnableToSaveProjectNotification::class.java, project) } }