[kotlin-analysis] light elements for decompiled declaration should return original...
[idea/community.git] / plugins / kotlin / analysis / src / org / jetbrains / kotlin / idea / caches / lightClasses / decompiledDeclarations / KtLightMethodForDecompiledDeclaration.kt
index b837fbbe7c71532a22e1ddfdf4eaeb2eaa66eb9a..4162d8e2d533881b8b825bf1baebce5e5bbd4c3b 100644 (file)
@@ -100,6 +100,8 @@ class KtLightMethodForDecompiledDeclaration(
     override val clsDelegate: PsiMethod = funDelegate
 
     override fun isValid(): Boolean = parent.isValid
+
+    override fun getOriginalElement() = funDelegate
 }
 
 private fun KtLightMethod.checkIsMangled(): Boolean {