void () { ThreadingAssertions.assertEventDispatchThread(); initText(" ".repeat(100)); Document document = getDocument(getFile()); MarkupModelEx markupModel = (MarkupModelEx)DocumentMarkupModel.forDocument(document, getProject(), true); List<String> events = new ArrayList<>(); addMarkupListener(markupModel, events); checkEventsFiredSynchronously(markupModel, events); }