void (@NotNull List<? extends @NotNull VFileEvent> events) { if (CommandProcessor.getInstance().isUndoTransparentActionInProgress()) return; Project project = CommandProcessor.getInstance().getCurrentCommandProject(); if (project == null || !project.isOpen()) return; MyUndoableAction action = createUndoableAction(events); if (action == null) return; action.doRemove(action.removed); lastAction = new WeakReference<>(action); UndoManager.getInstance(project).undoableActionPerformed(action); }