@SuppressWarnings("deprecation")
    public static Collection<? extends SCMListener> all() {
        Jenkins j = Jenkins.getInstanceOrNull();
        if (j == null) { // TODO use !Functions.isExtensionsAvailable() once JENKINS-33377
            return Collections.emptySet();
        }
        List<SCMListener> r = new ArrayList<>(j.getExtensionList(SCMListener.class));
        for (SCMListener l : j.getSCMListeners()) {
            r.add(l);
        }
        return r;
    }
@ SuppressWarnings ( "deprecation" ) public static Collection < ? extends SCMListener > all ( ) { Jenkins j = Jenkins . getInstanceOrNull ( ) ; if ( j == null ) { return Collections . emptySet ( ) ; } List < SCMListener > r = new ArrayList < > ( j . getExtensionList ( SCMListener . class ) ) ; for ( SCMListener l : j . getSCMListeners ( ) ) { r . add ( l ) ; } return r ; }
@since 1.568