void (Project project, final PsiMigration migration) { for (int i = 0; i < myMigrationMap.getEntryCount(); i++) { MigrationMapEntry entry = myMigrationMap.getEntryAt(i); if (entry.getType() == MigrationMapEntry.PACKAGE) { MigrationUtil.findOrCreatePackage(project, migration, entry.getOldName()); } else { MigrationUtil.findOrCreateClass(project, migration, entry.getOldName()); } } }