src/main/java/com/cloudbees/jenkins/support/api/ObjectComponent.java
public static <T extends AbstractModelObject> List<ObjectComponentDescriptor<T>> for_(T item) {
        return allInstances(item).stream()
                .map(ObjectComponent::getDescriptor)
                .collect(Collectors.toList());
    }
/**
     * All applicable {@link ObjectComponentDescriptor}s for the class.
     */
All applicable  ObjectComponentDescriptors for the class.
All applicable ObjectComponentDescriptors for the class .
public static <T extends AbstractModelObject> List<ObjectComponentDescriptor<T>> for_(T item) {
        return allInstances(item).stream()
                .map(ObjectComponent::getDescriptor)
                .collect(Collectors.toList());
    }
public static < T extends AbstractModelObject > List < ObjectComponentDescriptor < T > > for_ ( T item ) { return allInstances ( item ) . stream ( ) . map ( ObjectComponent :: getDescriptor ) . collect ( Collectors . toList ( ) ) ; }
All applicable {@link ObjectComponentDescriptor}s for the class.
All applicable { @link ObjectComponentDescriptor } s for the class .