List<HighlightInfo> () { ApplicationManager.getApplication().assertIsNonDispatchThread(); try { ExternalAnnotatorManager.getInstance().waitForAllExecuted(1, TimeUnit.MINUTES); } catch (ExecutionException | InterruptedException | TimeoutException e) { throw new RuntimeException(e); } //noinspection unchecked return (List<HighlightInfo>)myHighlightInfos; }