void (@Nullable Project project, @Nullable ProgressIndicator indicator) { ConfigDirsSearchResult result = ConfigImportHelper.findConfigDirectories(PathManager.getConfigDir()); List<DirectoryGroup> groups = collectDirectoryData(result, indicator); if (myLogger.isDebugEnabled()) { myLogger.debug("configs: " + result.getPaths()); myLogger.debug("groups: " + groups); } if (myBestBefore != 0) { deleteCowardly(groups); Stats.completed(groups.size(), groups.stream().mapToLong(g -> g.size).sum()); } else if (!groups.isEmpty()) { NotificationGroupManager.getInstance().getNotificationGroup("leftover.ide.directories") .createNotification(message("old.dirs.notification.text"), NotificationType.INFORMATION) .addAction(createSimpleExpiring(message("old.dirs.notification.action"), () -> confirmAndDelete(project, groups))) .notify(project); } else { NotificationGroupManager.getInstance().getNotificationGroup("leftover.ide.directories") .createNotification(message("old.dirs.not.found.notification.text"), NotificationType.INFORMATION) .notify(project); } }