boolean (@NotNull Object parendId, @NotNull MavenParsingContext parsingContext, @NotNull MavenLogEntryReader.MavenLogEntry logLine, @NotNull MavenLogEntryReader logEntryReader, @NotNull Consumer<? super BuildEvent> messageConsumer) { String line = logLine.getLine(); List<MavenLogEntryReader.MavenLogEntry> toConcat = logEntryReader.readWhile(l -> l.getType() == myType); String contatenated = line + "\n" + StringUtil.join(toConcat, MavenLogEntryReader.MavenLogEntry::getLine, "\n"); String message = getMessage(line, toConcat); if (!StringUtil.isEmptyOrSpaces(message) && myMessages.add(message)) { messageConsumer.accept(new MessageEventImpl(parendId, myKind, myGroup, message, contatenated)); return true; } return false; }