void (@Nullable ThreadReferenceProxy thread) { DebuggerManagerThreadImpl.assertIsManagerThread(); if (thread != null) { myWatchedThreads.remove(thread); } else { myWatchedThreads.clear(); } if (myWatchedThreads.isEmpty()) { cancelTask(); } }