private static void updateHighlightingChooser(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);
  }
private static void updateHighlightingChooser(Collection<? extends InspectionConfigTreeNode.Tool> nodes,
                                                Project project,
                                                HighlightingChooser highlightingChooser)