void (@NotNull GlobalInspectionContextImpl context, @NotNull final InspectionToolWrapper wrapper, @NotNull final InspectionTreeNode toolNode, final boolean showStructure, boolean groupBySeverity, @NotNull final Map<String, Set<RefEntity>> contents, @NotNull final Function<? super RefEntity, CommonProblemDescriptor[]> problems) { InspectionResultsView view = context.getView(); buildTree(context, contents, wrapper, refElement -> new RefEntityContainer<>(refElement, problems.apply(refElement)), showStructure, toolNode, view.getTree().getInspectionTreeModel()); }