question: @ CheckForNull private static Template findTemplate ( String nodeLabelString , List < Template > templates ) { Template selectedTemplate = null ; for ( Template template : templates ) { String templateLabel = template . getLabel ( ) ; if ( templateLabel != null && nodeLabelString . contains ( templateLabel ) ) { selectedTemplate = template ; break ; } } return selectedTemplate ; }
target:  Finds a template from the given templates list that matches the given label String.