boolean (@Nullable EventResult eventResult) { if (eventResult == null) return false; boolean hasChanged = false; if (eventResult instanceof FailureResult) { List<? extends Failure> failures = ((FailureResult)eventResult).getFailures(); if (failures.isEmpty()) return false; for (Iterator<? extends Failure> iterator = failures.iterator(); iterator.hasNext(); ) { Failure failure = iterator.next(); if (append(failure)) { hasChanged = true; } if (iterator.hasNext()) { print("\n\n", ConsoleViewContentType.NORMAL_OUTPUT); } } } else if (eventResult instanceof MessageEventResult) { String details = ((MessageEventResult)eventResult).getDetails(); if (details == null) { return false; } if (details.isEmpty()) { return false; } BuildConsoleUtils.printDetails(this, null, details); hasChanged = true; } return hasChanged; }