Added debugging helper method for finding references.