src/main/java/com/cloudbees/jenkins/support/api/ObjectComponent.java
public static <T extends AbstractModelObject> List<ObjectComponent<T>> allInstances(T item) {
        return Jenkins.get().getExtensionList(ObjectComponent.class).stream()
                .filter(component -> component.isApplicable(item.getClass()))
                .map(component -> ((ObjectComponent<T>) component))
                .filter(component -> component.isApplicable(item))
                .collect(Collectors.toList());
    }
/**
     * All applicable {@link ObjectComponent}s for the class.
     */
All applicable  ObjectComponents for the class.
All applicable ObjectComponents for the class .
public static <T extends AbstractModelObject> List<ObjectComponent<T>> allInstances(T item) {
        return Jenkins.get().getExtensionList(ObjectComponent.class).stream()
                .filter(component -> component.isApplicable(item.getClass()))
                .map(component -> ((ObjectComponent<T>) component))
                .filter(component -> component.isApplicable(item))
                .collect(Collectors.toList());
    }
public static < T extends AbstractModelObject > List < ObjectComponent < T > > allInstances ( T item ) { return Jenkins . get ( ) . getExtensionList ( ObjectComponent . class ) . stream ( ) . filter ( component -> component . isApplicable ( item . getClass ( ) ) ) . map ( component -> ( ( ObjectComponent < T > ) component ) ) . filter ( component -> component . isApplicable ( item ) ) . collect ( Collectors . toList ( ) ) ; }
All applicable {@link ObjectComponent}s for the class.
All applicable { @link ObjectComponent } s for the class .