public static IdeaLoggingEvent eventOf(@NotNull Throwable throwable,
                                         @Nullable String userMessage,
                                         @NotNull List<@NotNull Attachment> attachments) {
    return new IdeaLoggingEvent(userMessage, throwable, new LogMessage(throwable, userMessage, attachments));
  }
public static IdeaLoggingEvent eventOf(@NotNull Throwable throwable,
                                         @Nullable String userMessage,
                                         @NotNull List<@NotNull Attachment> attachments)