docs: public synchronized BuildDiscarder getBuildDiscarder() {
          BuildDiscarderProperty prop = _getProperty(BuildDiscarderProperty.class);
          return prop != null ? prop.getStrategy() : /* settings compatibility */ logRotator;
      }