void (@NotNull String groupId, @NotNull NotificationDisplayType defaultDisplayType) { if (ApplicationManager.getApplication().isUnitTestMode()) return; SwingUtilities.invokeLater(() -> { Application app = ApplicationManager.getApplication(); if (!app.isDisposed()) { app.getMessageBus().syncPublisher(TOPIC).register(groupId, defaultDisplayType); } }); }