void () { ApplicationManager.getApplication().assertWriteIntentLockAcquired(); CommandDescriptor currentCommand = myCurrentCommand; CommandEvent event = new CommandEvent(this, currentCommand.myCommand, currentCommand.myName, currentCommand.myGroupId, currentCommand.myProject, currentCommand.myUndoConfirmationPolicy, currentCommand.myShouldRecordActionForActiveDocument, currentCommand.myDocument); eventPublisher.commandStarted(event); }