void (@NotNull PsiElement anchor, @NotNull VirtualFile file) { final QualifiedName qName = QualifiedNameFinder.findShortestImportableQName(anchor, file); if (!PyPsiRefactoringUtil.isValidQualifiedName(qName)) { throw new IncorrectOperationException(PyBundle.message("refactoring.move.error.cannot.use.module.name", file.getName())); } }