void (@NotNull JComponent notificationComponent, @NotNull Disposable disposable) { widget().add(notificationComponent, BorderLayout.NORTH); Disposer.register(disposable, () -> { widget().remove(notificationComponent); widget().revalidate(); }); }