void (@NotNull AnActionEvent e) { final Project project = getEventProject(e); assert project != null; ProgressManager.getInstance() .runProcessWithProgressSynchronously(() -> collectAndShowDuplicates(project), "Gathering Images", true, project); }