public static boolean containsSub ( List < String > tokens ) { return tokens . stream ( ) . anyMatch ( token -> isSub ( token ) ) ; }
A case insensitive test of whether any of the supplied tokens is sub .