void (StringBuffer buffer, final ErrorTreeElement element, boolean withUsages, final int indent) { final String newline = System.lineSeparator(); Object[] children = myStructure.getChildElements(element); for (final Object child : children) { if (!(child instanceof ErrorTreeElement childElement)) { continue; } if (!withUsages && child instanceof NavigatableMessageElement) { continue; } if (buffer.length() > 0) { buffer.append(newline); } shift(buffer, indent); exportElement(childElement, buffer, indent, newline); getReportText(buffer, childElement, withUsages, indent + 4); } }