void (@NotNull List<? extends @NotNull VFileEvent> events) { MyUndoableAction action = SoftReference.dereference(lastAction); lastAction = null; if (action != null) { ApplicationManager.getApplication().invokeLater(() -> action.doAdd(action.added)); } }