question: public Node selectFirst ( String query ) { List < Node > selectedNodes = select ( query ) ; if ( selectedNodes . isEmpty ( ) ) { return null ; } return selectedNodes . get ( 0 ) ; }
target:  Selects nodes using CSS3 selector query and returns the very first one.