code: @SuppressWarnings({"unchecked", "rawtypes"})
      public static <T extends Describable<T>,D extends Descriptor<T>>
      DescriptorExtensionList<T,D> createDescriptorList(Jenkins jenkins, Class<T> describableType) {
          if (describableType == (Class) Publisher.class) {
              return (DescriptorExtensionList) new Publisher.DescriptorExtensionListImpl(jenkins);
          }
          return new DescriptorExtensionList<>(jenkins, describableType);
      }
docs: Creates a new instance.