void (@NotNull String groupId, @NotNull NotificationType type, @Nullable @NlsContexts.NotificationTitle String title, @Nullable @NlsContexts.NotificationSubtitle String subtitle, @NotNull @NlsContexts.NotificationContent String content, @Nullable Project project, @NotNull String displayId, @Nullable BiConsumer<Object, HyperlinkEvent> listener) { StringBuilder message = new StringBuilder(); if (title != null && !title.isEmpty()) { message.append(title); if (subtitle != null && !subtitle.isEmpty()) { message.append(" [").append(subtitle).append(']'); } message.append(": "); } message.append(content); switch (type) { case ERROR -> Logger.getInstance(PlatformIdeService.class).error(message.toString()); case WARNING -> Logger.getInstance(PlatformIdeService.class).warn(message.toString()); case INFORMATION -> Logger.getInstance(PlatformIdeService.class).info(message.toString()); } }