SSLR-305 Add AstNode.hasParent(nodeTypes) method