protected Element parentElement(){
  return elementStack.get(elementStack.size() - 1 - 1);
}

protected Element parentElement ( ) { return elementStack . get ( elementStack . size ( ) - 1 - 1 ) ; }
return parent of current element . stack has a dummy root element so every real element has non - null a parent .
