OfflineDescriptorResolveResult (@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); }