@Override
 protected void createDefaultActions() {
   super.createDefaultActions();
   myOKAction =
       new OkAction() {
         @Override
         public void actionPerformed(ActionEvent e) {
           super.actionPerformed(e);
           if ((e.getModifiers() & InputEvent.CTRL_MASK) != 0) {
             addCurrentExpressionToWatches();
           }
         }
       };
 }
 protected void initDialogData(TextWithImports text) {
   super.initDialogData(text);
   getExpressionCombo().selectAll();
 }