docs: public boolean isDetectorEnabled(DetectorFactory factory) {
          String detectorName = factory.getShortName();
          Boolean enabled = detectorEnablementMap.get(detectorName);
          if (enabled == null) {
              // No explicit preference has been specified for this detector,
              // so use the default enablement specified by the
              // DetectorFactory.
              enabled = factory.isDefaultEnabled();
              detectorEnablementMap.put(detectorName, enabled);
          }
          return enabled;
      }