void (@NotNull final DocumentEvent e) { final Document document = e.getDocument(); Collection<InlineWatch> inlines = getDocumentInlines(document); if (!inlines.isEmpty()) { myInlinesUpdateQueue.queue(new Update(document) { @Override public void run() { updateInlines(document); } }); } }