void () { // wait for async "highlight identifier" computation to apply in com.intellij.codeInsight.highlighting.BackgroundHighlighter.updateHighlighted NonBlockingReadActionImpl.waitForAsyncTaskCompletion(); NonBlockingReadActionImpl.waitForAsyncTaskCompletion(); }