docs: @Deprecated
      public LogRotator getLogRotator() {
          BuildDiscarder buildDiscarder = getBuildDiscarder();
          return buildDiscarder instanceof LogRotator ? (LogRotator) buildDiscarder : null;
      }