@Nullable
  protected static InspectionToolWrapper<?, ?> getToolWrapper(AnActionEvent e) {
    Object[] selectedNode = e.getData(PlatformCoreDataKeys.SELECTED_ITEMS);
    if (selectedNode == null) return null;

    InspectionResultsView view = getView(e);
    if (view != null && view.isSingleInspectionRun()) {
      InspectionProfileImpl profile = view.getCurrentProfile();
      String singleToolName = profile.getSingleTool();
      if (singleToolName != null) {
        return profile.getInspectionTool(singleToolName, e.getProject());
      }
    }
    return InspectionTree.findWrapper(selectedNode);
  }
@Nullable
  protected static InspectionToolWrapper<?, ?> getToolWrapper(AnActionEvent e)