static int getNodeTypeReferenceCount ( Node node , Token type , Predicate < Node > traverseChildrenPred ) { return getCount ( node , new MatchNodeType ( type ) , traverseChildrenPred ) ; }
Finds the number of times a type is referenced within the node tree .