private Node getEnclosingStatement(Node n, Node block) {
    while (checkNotNull(n.getParent()) != block) {
      n = checkNotNull(NodeUtil.getEnclosingStatement(n.getParent()));
    }
    return n;
  }
private Node getEnclosingStatement ( Node n , Node block ) { while ( checkNotNull ( n . getParent ( ) ) != block ) { n = checkNotNull ( NodeUtil . getEnclosingStatement ( n . getParent ( ) ) ) ; } return n ; }
@param n
@param block
@return The statement Node that is a child of block and contains n.