private void EnsureCopyCodeAction() {
     if(lastCopyCodeAction == null) {
         CopyCodeAction copyCode = new CopyCodeAction();
         AddAction(copyCode);
         lastCopyCodeAction = copyCode;
     }
 }
 internal void AddAction(Action action) {
     if (this.containedActions == null) {
         this.containedActions = new ArrayList();
     }
     this.containedActions.Add(action);
     lastCopyCodeAction = null;
 }