void (@NotNull ConsoleView consoleView, @Nullable Failure failure, @Nullable String details) { String text = failure == null ? details : ObjectUtils.chooseNotNull(failure.getDescription(), failure.getMessage()); if (text == null && failure != null && failure.getError() != null) { text = failure.getError().getMessage(); } if (text == null) return; Notification notification = failure == null ? null : failure.getNotification(); print(consoleView, notification, text); }