@ SuppressWarnings ( { "unchecked" , "rawtypes" } ) // reflective public static < T > List < ConsoleAnnotator < T > > _for ( T context ) { List < ConsoleAnnotator < T >> r = new ArrayList <> ( ) ; for ( ConsoleAnnotatorFactory f : ConsoleAnnotatorFactory . all ( ) ) { if ( f . type ( ) . isInstance ( context ) ) { ConsoleAnnotator ca = f . newInstance ( context ) ; if ( ca != null ) r . add ( ca ) ; } } return r ; }
List all the console annotators that can work for the specified context type .