code: public void setUserDetectorThreshold(int threshold) {
          String minPriority = ProjectFilterSettings.getIntPriorityAsString(threshold);
          filterSettings.setMinPriority(minPriority);
      }
docs: Set the detector threshold (min severity to report a warning).
  
  @param threshold
  the detector threshold