[backport] issue/dont-use-annotation-model-for-semantic-highlighting-1001156

semantic highlighting backport