void swapInspectionEnableState() {
      LOG.assertTrue(myTreeTable != null);

      TreePath[] selectionPaths = myTreeTable.getTree().getSelectionPaths();
      if (selectionPaths == null) return;
      Set<HighlightDisplayKey> tools = new HashSet<>();
      final List<InspectionConfigTreeNode> nodes = new ArrayList<>();
      for (TreePath selectionPath : selectionPaths) {
        final InspectionConfigTreeNode node = (InspectionConfigTreeNode)selectionPath.getLastPathComponent();
        collectInspectionFromNodes(node, tools, nodes);
      }

      final int[] selectedRows = myTreeTable.getSelectedRows();
      Boolean state = null;
      for (int selectedRow : selectedRows) {
        final Boolean value = (Boolean)myTreeTable.getValueAt(selectedRow, IS_ENABLED_COLUMN);
        if (state == null) {
          state = value;
        }
        else if (!state.equals(value)) {
          state = null;
          break;
        }
      }
      final boolean newState = !Boolean.TRUE.equals(state);

      final InspectionProfileImpl profile = mySettings.getInspectionProfile();

      for (HighlightDisplayKey tool : tools) {
        InspectionProfileImpl.setToolEnabled(newState, profile, tool.toString(), mySettings.getProject());
      }

      for (InspectionConfigTreeNode node : nodes) {
        mySettings.onChanged(node);
      }

      updateRightPanel();
    }
void swapInspectionEnableState()