void (@NotNull Component c, @NotNull Activatable activatable, @Nullable Disposable parent) { UiNotifyConnector connector = new UiNotifyConnector(c, activatable, null) { @Override protected void showNotify() { super.showNotify(); Disposer.dispose(this); } }; connector.setupListeners(); if (parent != null) { Disposer.register(parent, connector); } }