void (VirtualFile @NotNull ... docFolders) { if (docFolders.length > 0 && SystemInfo.isMac) { ApplicationManager.getApplication().executeOnPooledThread(() -> { List<@NlsSafe String> quarantined = Stream.of(docFolders) .filter(f -> f.isInLocalFileSystem() && f.isDirectory() && XAttrUtil.getXAttr(f.getPath(), QUARANTINE_ATTRIBUTE) != null) .map(VirtualFile::getPath) .collect(Collectors.toList()); if (!quarantined.isEmpty()) { ApplicationManager.getApplication().invokeLater(() -> { String title = JavaUiBundle.message("quarantine.cleaner"); String message = JavaUiBundle.message("quarantine.dialog.message", StringUtil.join(quarantined, "\n")); if (MessageDialogBuilder.yesNo(title, message).show() == Messages.YES) { cleanQuarantineStatusInBackground(quarantined); } }, ModalityState.any()); } }); } }