void (final List<OutputEventQueue.NodeEvent> events) { Runnable runnable = () -> { myListenersDisabled = true; try { updateImpl(events); } finally { myListenersDisabled = false; nodeStructureChanged((TreeNode)getRoot()); } }; ApplicationManager.getApplication().invokeLater(runnable); }