void (UsageInfo @NotNull [] usages) { int counter = 0; final ProgressIndicator progressIndicator = ProgressManager.getInstance().getProgressIndicator(); LOG.assertTrue(progressIndicator != null); progressIndicator.setIndeterminate(false); for (GroovyFile file : myFiles) { counter++; commitFile(file); progressIndicator.setText2(file.getName()); progressIndicator.setFraction(counter / (double)myFiles.length); try { applyDeclarationFixes(file); putCompileAnnotations(file); applyErrorFixes(file); commitFile(file); } catch (Exception e) { LOG.error("Error in converting file: " + file.getName(), e); } } }