@NotNull
  static OfflineDescriptorResolveResult resolve(@NotNull OfflineProblemDescriptor descriptor,
                                                @NotNull InspectionToolWrapper<?,?> wrapper,
                                                @NotNull InspectionToolPresentation presentation) {
    RefEntity element = descriptor.getRefElement(presentation.getContext().getRefManager());
    CommonProblemDescriptor resolvedDescriptor =
      ReadAction.compute(() -> createDescriptor(element, descriptor, wrapper, presentation));
    return new OfflineDescriptorResolveResult(element, resolvedDescriptor);
  }
@NotNull
  static OfflineDescriptorResolveResult resolve(@NotNull OfflineProblemDescriptor descriptor,
                                                @NotNull InspectionToolWrapper<?,?> wrapper,
                                                @NotNull InspectionToolPresentation presentation)