in src/dotnet/JetBrains.PresentationAssistant/BasePopupWindow.cs [127:131]
private void OnContextOwnerSelectionChanged(object sender, EventArgs args)
{
if ((hideFlags & HideFlags.SelectionChanged) != 0)
HideWindow();
}