@Override
  public boolean parse(@NotNull String line, @NotNull BuildOutputInstantReader reader, @NotNull Consumer<? super BuildEvent> messageConsumer) {
    MessageEvent.Kind kind = MessageEvent.Kind.ERROR;
    String prefix = ERROR_PREFIX;
    int prefixIndex = line.indexOf(ERROR_PREFIX);
    if (prefixIndex < 0) {
      kind = MessageEvent.Kind.WARNING;
      prefix = WARNING_PREFIX;
      prefixIndex = line.indexOf(WARNING_PREFIX);
      if (prefixIndex < 0) {
        return false;
      }
    }

    @NlsSafe String text = line.substring(prefixIndex + prefix.length()).trim();
    messageConsumer.accept(new MessageEventImpl(reader.getParentEventId(), kind, null, text, text));
    return true;
  }
@Override
  public boolean parse(@NotNull String line, @NotNull BuildOutputInstantReader reader, @NotNull Consumer<? super BuildEvent> messageConsumer)