diff --git a/platform/lang-impl/src/com/intellij/codeInspection/ui/actions/ExportHTMLAction.java b/platform/lang-impl/src/com/intellij/codeInspection/ui/actions/ExportHTMLAction.java index e540960dafdc..8e336a170c4e 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ui/actions/ExportHTMLAction.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ui/actions/ExportHTMLAction.java @@ -140,10 +140,10 @@ public class ExportHTMLAction extends AnAction implements DumbAware { InspectionNode toolNode = (InspectionNode)node; Element problems = new Element(PROBLEMS); InspectionToolWrapper toolWrapper = toolNode.getToolWrapper(); + if (!visitedWrappers.add(toolWrapper)) return true; final Set toolWrappers = getWorkedTools(toolNode); for (InspectionToolWrapper wrapper : toolWrappers) { - if (!visitedWrappers.add(wrapper)) continue; InspectionToolPresentation presentation = myView.getGlobalInspectionContext().getPresentation(wrapper); final ExcludedInspectionTreeNodesManager excludedManager = myView.getExcludedManager(); if (!toolNode.isExcluded(excludedManager)) {