Fix detecting overlapping statements when checking for usage