From 29cf88cc4ba8ec6f86b0612eec8c3a4862b4137c Mon Sep 17 00:00:00 2001
From: chylex <contact@chylex.com>
Date: Sun, 5 Nov 2023 17:57:32 +0100
Subject: [PATCH] Update API usage for 2023.3

Closes #20
---
 build.gradle.kts                                              | 4 ++--
 .../com/chylex/intellij/inspectionlens/InspectionLens.kt      | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/build.gradle.kts b/build.gradle.kts
index c3dc7ba..696cd1b 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -15,7 +15,7 @@ repositories {
 }
 
 intellij {
-	version.set("2023.1")
+	version.set("233.11555.11-EAP-SNAPSHOT")
 	updateSinceUntilBuild.set(false)
 	
 	plugins.add("tanvd.grazi")
@@ -30,7 +30,7 @@ dependencies {
 }
 
 tasks.patchPluginXml {
-	sinceBuild.set("231")
+	sinceBuild.set("233.11361.10")
 }
 
 tasks.buildSearchableOptions {
diff --git a/src/main/kotlin/com/chylex/intellij/inspectionlens/InspectionLens.kt b/src/main/kotlin/com/chylex/intellij/inspectionlens/InspectionLens.kt
index 6f2881a..a4e20c2 100644
--- a/src/main/kotlin/com/chylex/intellij/inspectionlens/InspectionLens.kt
+++ b/src/main/kotlin/com/chylex/intellij/inspectionlens/InspectionLens.kt
@@ -9,7 +9,7 @@ import com.intellij.openapi.fileEditor.TextEditor
 import com.intellij.openapi.project.ProjectManager
 import com.intellij.openapi.rd.createLifetime
 import com.intellij.openapi.rd.createNestedDisposable
-import com.jetbrains.rd.util.lifetime.intersect
+import com.jetbrains.rd.util.lifetime.Lifetime
 
 /**
  * Handles installation and uninstallation of plugin features in editors.
@@ -55,7 +55,7 @@ internal object InspectionLens {
 	private fun createEditorDisposable(textEditor: TextEditor): Disposable {
 		val pluginLifetime = ApplicationManager.getApplication().getService(InspectionLensPluginDisposableService::class.java).createLifetime()
 		val editorLifetime = textEditor.createLifetime()
-		return pluginLifetime.intersect(editorLifetime).createNestedDisposable()
+		return Lifetime.intersect(pluginLifetime, editorLifetime).createNestedDisposable("InspectionLensIntersectedLifetime")
 	}
 	
 	/**