void (final Project project, final @NlsContexts.Command String commandName, final Object commandGroupId) { ClientState state = getClientState(); if (state != null) { commandFinished(state, commandName, commandGroupId); } if (state == null || state.myCommandLevel == 0) { for (UndoProvider undoProvider : getUndoProviders()) { undoProvider.commandFinished(project); } if (state != null) { state.myCurrentActionProject = DummyProject.getInstance(); } } LOG.assertTrue(state == null || state.myCommandLevel == 0 || !(state.myCurrentActionProject instanceof DummyProject)); }