private void getReportText(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.isEmpty()) {
        buffer.append(newline);
      }
      shift(buffer, indent);
      exportElement(childElement, buffer, indent, newline);
      getReportText(buffer, childElement, withUsages, indent + 4);
    }
  }
private void getReportText(StringBuffer buffer, final ErrorTreeElement element, boolean withUsages, final int indent)