diff --git a/compiler/psi/src/org/jetbrains/kotlin/psi/KtPsiFactory.kt b/compiler/psi/src/org/jetbrains/kotlin/psi/KtPsiFactory.kt
index 335c224d58b..046e058a60a 100644
--- a/compiler/psi/src/org/jetbrains/kotlin/psi/KtPsiFactory.kt
+++ b/compiler/psi/src/org/jetbrains/kotlin/psi/KtPsiFactory.kt
@@ -278,6 +278,14 @@ class KtPsiFactory @JvmOverloads constructor(private val project: Project, val m
bodyExpression.replace(expression)
return setter
}
+
+ fun createPropertyDelegate(expression: KtExpression): KtPropertyDelegate {
+ val property = createProperty("val x by lazy { 1 }")
+ val delegate = property.delegate!!
+ val delegateExpression = delegate.expression!!
+ delegateExpression.replace(expression)
+ return delegate
+ }
fun createDestructuringDeclaration(text: String): KtDestructuringDeclaration {
return createFunction("fun foo() {$text}").bodyBlockExpression!!.statements.first() as KtDestructuringDeclaration
diff --git a/idea/resources/META-INF/plugin-common.xml b/idea/resources/META-INF/plugin-common.xml
index 92da75bc49c..acc64b27dc0 100644
--- a/idea/resources/META-INF/plugin-common.xml
+++ b/idea/resources/META-INF/plugin-common.xml
@@ -1663,6 +1663,16 @@
Kotlin
+
+ org.jetbrains.kotlin.idea.intentions.ConvertOrdinaryPropertyToLazyIntention
+ Kotlin
+
+
+
+ org.jetbrains.kotlin.idea.intentions.ConvertLazyPropertyToOrdinaryIntention
+ Kotlin
+
+
+
+This intention converts a lazy property / variable to an ordinary property / variable.
+
+