def METHOD_NAME(self, ttype ):
    if self.getChildren() is None:
        return []
    tokens = []
    for child in self.getChildren():
        if not isinstance(child, TerminalNode):
            continue
        if child.symbol.type != ttype:
            continue
        tokens.append(child)
    return tokens