@Override
  public void addInspectionWidgetAction(@NotNull AnAction action, @Nullable Constraints constraints) {
    if (constraints != null) {
      inspectionWidgetActions.add(action, constraints);
    }
    else {
      inspectionWidgetActions.add(action);
    }
  }
@Override
  public void addInspectionWidgetAction(@NotNull AnAction action, @Nullable Constraints constraints)