public static void doMoveDirectory(final PsiDirectory aDirectory, final PsiDirectory destDirectory) throws IncorrectOperationException {
    PsiManager manager = aDirectory.getManager();
    doJustMoveDirectory(aDirectory, destDirectory, manager);
    DumbService.getInstance(manager.getProject()).completeJustSubmittedTasks();
  }
public static void doMoveDirectory(final PsiDirectory aDirectory, final PsiDirectory destDirectory)