private void onDocumentChange() {
    EDT.assertIsEdt();
    for (HintManagerImpl.HintInfo info : myHintsStack) {
      if (BitUtil.isSet(info.flags(), HintManager.HIDE_BY_TEXT_CHANGE)) {
        info.hint().hide();
        myHintsStack.remove(info);
      }
    }

    if (myHintsStack.isEmpty()) {
      updateLastEditor(null);
    }
  }
private void onDocumentChange()