void (Collection<? extends InspectionConfigTreeNode.Tool> nodes, Project project, HighlightingChooser highlightingChooser) { final TextAttributesKey key = ScopesAndSeveritiesTable.getEditorAttributesKey( ContainerUtil.map(nodes, node -> node.getDefaultDescriptor().getState()), project ); highlightingChooser.setChosen(key); }