I'm pretty sure we can fix it, but it needs some refactoring. Basically, the SyntaxClasses should be created by the editor right after checking if semantic highlighting is enabled, that way you know you are running inside the UI Thread. I can extend my comment to include this information and create a ticket. Sounds good?