@Override
  public void addProblemElement(@Nullable RefEntity refElement,
                                boolean filterSuppressed,
                                CommonProblemDescriptor @NotNull ... descriptors) {
    if (refElement == null || descriptors.length == 0) {
      return;
    }

    ReportedProblemFilter filter = myContext.getReportedProblemFilter();
    if (filter != null && !filter.shouldReportProblem(refElement, descriptors)) {
      return;
    }

    checkFromSameFile(refElement, descriptors);
    if (myContext.getOutputPath() == null || !(myToolWrapper instanceof LocalInspectionToolWrapper)
        || this instanceof AggregateResultsExporter) {
      myProblemElements.put(refElement, descriptors);
    }
    else {
      addLocalInspectionProblem(refElement, descriptors);
    }
  }
@Override
  public void addProblemElement(@Nullable RefEntity refElement,
                                boolean filterSuppressed,
                                CommonProblemDescriptor @NotNull ... descriptors)