void (@NotNull final ProgressIndicator indicator) { myScope.accept(new PsiElementVisitor() { @Override public void visitFile(@NotNull final PsiFile file) { if (indicator.isCanceled()) { return; } final Module module = ModuleUtilCore.findModuleForPsiElement(file); final UpdateCopyrightProcessor processor = new UpdateCopyrightProcessor(file.getProject(), module, file); final Runnable runnable = processor.preprocessFile(file, myAllowReplacement); if (runnable != EmptyRunnable.getInstance()) { preparations.put(file, runnable); } } }); }