void (long threadId, ProgressIndicator indicator) { if (indicator == null) { currentIndicators.remove(threadId); threadTopLevelIndicators.remove(threadId); } else { currentIndicators.put(threadId, indicator); threadTopLevelIndicators.putIfAbsent(threadId, indicator); } }