void (@NotNull Consumer<? super Element> resultConsumer, @NotNull RefEntity refEntity, @NotNull Predicate<? super CommonProblemDescriptor> excludedDescriptions) { if (!(refEntity instanceof RefJavaElement)) return; final RefFilter filter = getFilter(); if (!myFixedElements.containsKey(refEntity) && filter.accepts((RefJavaElement)refEntity)) { refEntity = getRefManager().getRefinedElement(refEntity); if (!refEntity.isValid()) return; RefJavaElement refElement = (RefJavaElement)refEntity; if (!compareVisibilities(refElement, getTool().getSharedLocalInspectionTool())) return; if (skipEntryPoints(refElement)) return; Element element = refEntity.getRefManager().export(refEntity); if (element == null) return; @NonNls Element problemClassElement = new Element(INSPECTION_RESULTS_PROBLEM_CLASS_ELEMENT); problemClassElement.setAttribute(INSPECTION_RESULTS_ID_ATTRIBUTE, myToolWrapper.getShortName()); final HighlightSeverity severity = getSeverity(refElement); final String attributeKey = HighlightInfoType.UNUSED_SYMBOL.getAttributesKey().getExternalName(); problemClassElement.setAttribute(INSPECTION_RESULTS_SEVERITY_ATTRIBUTE, severity.myName); problemClassElement.setAttribute(INSPECTION_RESULTS_ATTRIBUTE_KEY_ATTRIBUTE, attributeKey); problemClassElement.addContent(AnalysisBundle.message("inspection.export.results.dead.code")); element.addContent(problemClassElement); @NonNls Element hintsElement = new Element(INSPECTION_RESULTS_HINTS_ELEMENT); for (UnusedDeclarationHint hint : UnusedDeclarationHint.values()) { @NonNls Element hintElement = new Element(INSPECTION_RESULTS_HINT_ELEMENT); hintElement.setAttribute(INSPECTION_RESULTS_VALUE_ATTRIBUTE, StringUtil.toLowerCase(hint.toString())); hintsElement.addContent(hintElement); } element.addContent(hintsElement); Element descriptionElement = new Element(INSPECTION_RESULTS_DESCRIPTION_ELEMENT); StringBuilder buf = new StringBuilder(); DeadHTMLComposer.appendProblemSynopsis((RefElement)refEntity, buf); descriptionElement.addContent(buf.toString()); element.addContent(descriptionElement); resultConsumer.accept(element); } super.exportResults(resultConsumer, refEntity, excludedDescriptions); }