IdeaLoggingEvent (@NotNull Throwable throwable, @Nullable String userMessage, Attachment @NotNull ... attachments) { return new IdeaLoggingEvent(userMessage, throwable, new LogMessage(throwable, userMessage, List.of(attachments))); }