String (String line, List<MavenLogEntryReader.MavenLogEntry> toConcat) { if (toConcat == null || toConcat.isEmpty()) { return line; } if (!StringUtil.isEmptyOrSpaces(line)) { return line; } MavenLogEntryReader.MavenLogEntry entry = ContainerUtil.find(toConcat, e -> !StringUtil.isEmptyOrSpaces(e.getLine())); if (entry != null) { return entry.getLine(); } return ""; }