Add utilities for finding annotations in rules.