void (@NotNull Thread thread, boolean underCanceledIndicator) { boolean changed = underCanceledIndicator ? threadsUnderCanceledIndicator.add(thread) : threadsUnderCanceledIndicator.remove(thread); if (changed) { updateShouldCheckCanceled(); } }