SONAR-5528 Improve performance of syntax highlighting API