code: public IParsedElement findAncestorParsedElementByType( Class... parsedElementClasses )
    {
      IParsedElement parent = getParent();
      while( (parent != null) && !(elementIsOneOfType( parent, parsedElementClasses )) )
      {
        parent = parent.getParent();
      }
      if( parent != null )
      {
        return parent;
      }
      else
      {
        return null;
      }
    }
docs: @param parsedElementClasses List of statement types to find
  
  @return The nearest ancestor statement that is any one of the given types. null if this element does not have
  an ancestor of any of the given types