in src/dotnet/JetBrains.PresentationAssistant/BasePopupWindow.cs [85:98]
private void DetachEvents()
{
var context = Context;
if (context != null)
{
context.AnyOtherAction -= OnContextOwnerAnyActionPerformed;
context.Scroll -= OnContextOwnerScroll;
context.SelectionChanged -= OnContextOwnerSelectionChanged;
context.Deactivated -= OnContextOwnerDeactivated;
context.EscapePressed -= OnContextOwnerEscapePressed;
}
DetachWindowEvents();
}