public static < T extends TOP > List < T > selectAsList ( final JCas jCas , final Class < T > type ) { return new ArrayList <> ( JCasUtil . select ( jCas , type ) ) ; }
Convenience method that selects all feature structures of the given type and creates a list from them .