@Override
public void updateMovedFile(PsiFile file) throws IncorrectOperationException {
final HaxeFile haxeFile = (HaxeFile)file;
final PsiElement firstChild = haxeFile.getFirstChild();
final HaxePackageStatement packageStatement = PsiTreeUtil.getChildOfType(haxeFile, HaxePackageStatement.class);
final HaxePackageStatement newPackageStatement =
HaxeElementGenerator.createPackageStatementFromPath(haxeFile.getProject(), file.getUserData(destinationPackageKey));
assert newPackageStatement != null;
if (packageStatement == null && firstChild == null) {
haxeFile.add(newPackageStatement);
}