code: public static DescriptorExtensionList<BuildWrapper,Descriptor<BuildWrapper>> all() {
          // use getDescriptorList and not getExtensionList to pick up legacy instances
          return Jenkins.getInstance().<BuildWrapper,Descriptor<BuildWrapper>>getDescriptorList(BuildWrapper.class);
      }
docs: for compatibility we can't use BuildWrapperDescriptor