diff --git a/plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/refactoring/move/K1MoveRefactoringSupport.kt b/plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/refactoring/move/K1MoveRefactoringSupport.kt new file mode 100644 index 000000000000..8347d1f7d461 --- /dev/null +++ b/plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/refactoring/move/K1MoveRefactoringSupport.kt @@ -0,0 +1,14 @@ +// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +package org.jetbrains.kotlin.idea.refactoring.move + +import com.intellij.psi.PsiElement +import com.intellij.psi.PsiReference +import com.intellij.psi.search.SearchScope +import org.jetbrains.kotlin.idea.base.searching.usages.KotlinFindUsagesHandlerFactory + +internal class K1MoveRefactoringSupport : KotlinMoveRefactoringSupport { + override fun findReferencesToHighlight(target: PsiElement, searchScope: SearchScope): Collection { + return KotlinFindUsagesHandlerFactory(target.project).createFindUsagesHandler(target, false) + .findReferencesToHighlight(target, searchScope) + } +} \ No newline at end of file diff --git a/plugins/kotlin/plugin/k1/resources/META-INF/refactorings-fe10.xml b/plugins/kotlin/plugin/k1/resources/META-INF/refactorings-fe10.xml index 8ca4b1d689db..32329adf88f4 100644 --- a/plugins/kotlin/plugin/k1/resources/META-INF/refactorings-fe10.xml +++ b/plugins/kotlin/plugin/k1/resources/META-INF/refactorings-fe10.xml @@ -35,6 +35,9 @@ + + +} \ No newline at end of file