static Node getCatchHandlerForBlock ( Node block ) { if ( block . isBlock ( ) && block . getParent ( ) . isTry ( ) && block . getParent ( ) . getFirstChild ( ) == block ) { for ( Node s = block . getNext ( ) ; s != null ; s = s . getNext ( ) ) { if ( NodeUtil . hasCatchHandler ( s ) ) { return s . getFirstChild ( ) ; } } } return null ; }
Locate the catch BLOCK given the first block in a TRY .