@Override
        public void contentRemoved(@NotNull ContentManagerEvent event) {
          if (event.getContent().getComponent() == PanelWithActionsAndCloseButton.this) {
            Disposer.dispose(PanelWithActionsAndCloseButton.this);
            myContentManager.removeContentManagerListener(this);
          }
        }
@Override
        public void contentRemoved(@NotNull ContentManagerEvent event)