void (@NotNull Object modalEntity) { ThreadingAssertions.assertEventDispatchThread(); if (LOG.isDebugEnabled()) { LOG.debug("leaveModal:" + modalEntity); } ourModalityStateMulticaster.getMulticaster().beforeModalityStateChanged(false, modalEntity); int index = ourModalEntities.indexOf(modalEntity); LOG.assertTrue(index >= 0); removeModality(modalEntity, index); reincludeSkippedItemsAndRequestFlush(); }