void update() {
      boolean enabled = false;
      if (lastExecutedRangeSearchTask != null
          && !lastExecutedRangeSearchTask.isFinished()
          && !lastExecutedRangeSearchTask.isShouldStop()) {
        enabled = true;
      }
      setVisible(enabled);
      if (enabled) {
        resume();
      }
      else {
        suspend();
      }
    }
void update()