public void addText(@NotNull String text, @NotNull Key outputType) {
    int index = text.indexOf('\n');
    while (index != -1) {
      myConsumer.accept(myBuffer.append(text, 0, index).append("\n").toString(), outputType);
      myBuffer.setLength(0);
      text = text.substring(index + 1);
      index = text.indexOf('\n');
    }
    if (!text.isEmpty()) {
      myBuffer.append(text);
    }
  }
public void addText(@NotNull String text, @NotNull Key outputType)