private void cancelCurrentUpdate() {
    CancellablePromise<List<AnAction>> lastUpdate = myLastUpdate;
    myLastUpdate = null;
    if (lastUpdate != null) lastUpdate.cancel();
  }
private void cancelCurrentUpdate()