private void scheduleHide(boolean force, int delay) {
    popupAlarm.cancelAllRequests();
    popupAlarm.addRequest((ContextAwareRunnable)() -> hidePopup(force), delay);
  }
private void scheduleHide(boolean force, int delay)