public static void printWithHighlighting(@NotNull ConsoleView console,
                                           @NotNull String text,
                                           @NotNull SyntaxHighlighter highlighter,
                                           Runnable doOnNewLine) {
    printWithHighlighting((token, contentType) -> console.print(token, contentType), text, highlighter, doOnNewLine);
  }
public static void printWithHighlighting(@NotNull ConsoleView console,
                                           @NotNull String text,
                                           @NotNull SyntaxHighlighter highlighter,
                                           Runnable doOnNewLine)