void (@NotNull String text, @NotNull ConsoleViewContentType contentType) { ProgressManager.checkCanceled(); if (contentType != lastType.get()) { if (buffer.length() > 0) { try { writeOutput(lastType.get(), buffer); } catch (SAXException e) { error.set(e); } } lastType.set(contentType); } if (bufferSize <= 0 || buffer.length() < bufferSize) { buffer.append(text); } }