HtmlChunk (@NotNull ActionContext context, @NotNull ModUpdateInspectionOptions options) { InspectionToolWrapper<?, ?> tool = InspectionProfileManager.getInstance(context.project()).getCurrentProfile().getInspectionTool(options.inspectionShortName(), context.file()); if (tool == null) { return HtmlChunk.empty(); } HtmlBuilder builder = new HtmlBuilder(); for (var option : options.options()) { builder.append(createOptionPreview(tool.getTool(), option)); } return builder.toFragment(); }