void (UsageInfo[] usageInfos) { if (hasUsages2Migrate()) { final List<UsageInfo> migrationInfos = new ArrayList<>(); for (UsageInfo usageInfo : usageInfos) { if (usageInfo instanceof EnumTypeMigrationUsageInfo) { migrationInfos.add(((EnumTypeMigrationUsageInfo)usageInfo).getUsageInfo()); } } myTypeMigrationProcessor.performRefactoring(migrationInfos.toArray(UsageInfo.EMPTY_ARRAY)); } }