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