public void retargetUsages(List<UsageInfo> usageInfos, Map<PsiElement, PsiElement> oldToNewMap) {
}
@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);
}
else if (packageStatement == null && firstChild != null) {
haxeFile.addBefore(newPackageStatement, firstChild);
}
else {
packageStatement.replace(newPackageStatement);
}
}