@Override
  public boolean isEscapeHandlerEnabled() {
    boolean isEDT = EDT.isCurrentThreadEdt();
    HintManagerImpl.HintInfo[] arr = myHintsStack.toArray(new HintManagerImpl.HintInfo[0]);
    for (int i = arr.length - 1; i > -1; i--) {
      HintManagerImpl.HintInfo info = arr[i];
      if (!info.hint().isVisible()) {
        if (isEDT) {
          myHintsStack.remove(info);
          info.hint().hide();
        }
        continue;
      }

      if ((info.flags() & (HintManager.HIDE_BY_ESCAPE | HintManager.HIDE_BY_ANY_KEY)) != 0) {
        return true;
      }
    }
    return false;
  }
@Override
  public boolean isEscapeHandlerEnabled()