private static @Nullable InspectionToolWrapper<?,?> getToolWrapper(InspectionTreeNode node) {
    while (node != null) {
      if (node instanceof InspectionNode) {
        return ((InspectionNode)node).getToolWrapper();
      }
      else if (node instanceof SuppressableInspectionTreeNode) {
        return ((SuppressableInspectionTreeNode)node).getPresentation().getToolWrapper();
      }
      node = node.getParent();
    }
    return null;
  }
private static @Nullable InspectionToolWrapper<?,?> getToolWrapper(InspectionTreeNode node)