Detect and report incorrectly nested annotations.