void (PsiFile file, PsiDirectory moveDestination, Map<PsiElement, PsiElement> oldToNewMap) { final PsiJavaFile javaFile = (PsiJavaFile)file; ChangeContextUtil.encodeContextInfo(javaFile, true); for (PsiClass psiClass : javaFile.getClasses()) { oldToNewMap.put(psiClass, MoveClassesOrPackagesUtil.doMoveClass(psiClass, moveDestination)); } }