docs: @SuppressWarnings({"unchecked", "rawtypes"})
      public Map<JobPropertyDescriptor, JobProperty<? super JobT>> getProperties() {
          Map result = Descriptor.toMap((Iterable) properties);
          if (logRotator != null) {
              result.put(Jenkins.getActiveInstance().getDescriptorByType(BuildDiscarderProperty.DescriptorImpl.class), new BuildDiscarderProperty(logRotator));
          }
          return result;
      }