void (boolean success) { ApplicationManager.getApplication().invokeLater(() -> { if (success) { for (int i = 0, size = infos.size(); i < size; i++) { UrlInfo info = infos.get(i); info.errorTooltip = results.get(i); info.progress = false; } } else { for (UrlInfo info : infos) { info.progress = false; } } myTable.repaint(); }, ModalityState.any()); }