void (@NotNull List<Request> requestList) { synchronized (LOCK) { if (myIsClosed) return; myAwaitingRequests.addAll(requestList); debug("Added requests: " + requestList); if (myRunningTask != null && cancelRunningTasks(requestList)) { cancelTask(myRunningTask); } if (myRunningTask == null) { myRunningTask = startNewBackgroundTask(); debug("Started a new bg task " + myRunningTask); } } }