void (@NotNull WizardPopup aBaseWizardPopup) { if (ourActiveWizardRoot != null) { for (WizardPopup wp = aBaseWizardPopup; wp != null; wp = wp.getParent()) { if (wp == ourActiveWizardRoot) { ourShowingStep = aBaseWizardPopup.getParent(); return; } } WizardPopup activeRoot = getActiveRoot(); if (aBaseWizardPopup != activeRoot && ourShowingStep != activeRoot) { // even if no parent popup exist (e.g. it's ActionGroupPopup), sync showing step with possible changed active root. // set visible active root to correctly dispatch subsequent events. ourShowingStep = activeRoot; } } }