doMoveFile() now accepts not-null PsiDirectory

(cherry picked from commit 8a16c90)
This commit is contained in:
Yan Zhulanow
2016-12-01 19:58:21 +01:00
committed by Dmitry Jemerov
parent 59055e28ee
commit 0995f2700e
@@ -69,6 +69,7 @@ class MoveKotlinFileHandler : MoveFileHandler() {
fun initMoveProcessor(psiFile: PsiFile, newParent: PsiDirectory?): MoveKotlinDeclarationsProcessor? {
if (psiFile !is KtFile) return null
if (newParent == null) return null
val packageNameInfo = psiFile.getPackageNameInfo(newParent, false) ?: return null
val project = psiFile.project