void (Printer printer) { printer.mark(); // Error msg var errorMsgPresentation = getErrorMsgPresentation(); if (!StringUtil.isEmptyOrSpaces(errorMsgPresentation)) { printer.print(CompositePrintable.NEW_LINE, ConsoleViewContentType.ERROR_OUTPUT); printer.printWithAnsiColoring(errorMsgPresentation, ProcessOutputTypes.STDERR); } // Diff link myHyperlink.printOn(printer); // Stacktrace printer.print(CompositePrintable.NEW_LINE, ConsoleViewContentType.ERROR_OUTPUT); printer.printWithAnsiColoring(getStacktracePresentation(), ProcessOutputTypes.STDERR); printer.print(CompositePrintable.NEW_LINE, ConsoleViewContentType.ERROR_OUTPUT); }