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