void (@NotNull ProcessEvent event, @NotNull Key outputType) { String text; synchronized (this) { if (myStoredLength > 16384) { return; } text = event.getText(); if (StringUtil.isEmptyOrSpaces(text)) { return; } myStoredLength += text.length(); } try { myOutput.append(text); } catch (IOException ignored) { } }