void (@NotNull Class<?> loggingClass, @NotNull Object message, Attachment @NotNull ... attachments) { String s = message.toString(); Logger.getInstance(loggingClass).error(s, new IllegalStateException(s), attachments); }