void (@NotNull Project project, @NotNull UniqueModuleNames uniqueModuleNames) { ProgressManager.getInstance().run( new Task.Backgroundable(project, getTitle(), true) { @Override public void run(@NotNull ProgressIndicator indicator) { Map<Module, List<File>> classFiles = new HashMap<>(); int totalFiles = collectClassFiles(project, classFiles); if (totalFiles != 0) { new DescriptorsGenerator(project, uniqueModuleNames).generate(classFiles, indicator, totalFiles); } } }); }