Filtering for trait code snippet equal