Converted inspections to use compiler scope for Trees