@Override
  protected boolean canBeDisposed() {
    return myLateShowHintCallback == null && !myHint.isVisible() && !myKeepOnHintHidden && !ApplicationManager.getApplication().isHeadlessEnvironment()
           || myEditor instanceof EditorWindow && !((EditorWindow)myEditor).isValid();
  }
@Override
  protected boolean canBeDisposed()