def METHOD_NAME(self) -> Sequence[ASTKernel]:
    """
    Returns a list of all kernels in this block.
    :return: a list of all kernels.
    """
    ret = list()
    for decl in self.get_declarations():
        if isinstance(decl, ASTKernel):
            ret.append(decl)
    return ret