private void updateControls() {
    if (myCbReplaceWrite != null) {
      if (myCbReplaceAll.isSelected()) {
        myCbReplaceWrite.makeSelectable();
      } else {
        myCbReplaceWrite.makeUnselectable(true);
      }
    }

    if (myCbReplaceAll != null) {
      myTypeSelectorManager.setAllOccurrences(myCbReplaceAll.isSelected());
    } else {
      myTypeSelectorManager.setAllOccurrences(false);
    }

    if (myDeclareFinalIfAll && myCbReplaceAll != null && myCbReplaceAll.isSelected()) {
      myCbFinal.setEnabled(false);
      myCbFinal.setSelected(true);
    } else if (myCbReplaceWrite != null
        && myCbReplaceWrite.isEnabled()
        && myCbReplaceWrite.isSelected()) {
      myCbFinal.setEnabled(false);
      myCbFinal.setSelected(false);
    } else {
      myCbFinal.setEnabled(true);
      myCbFinal.setSelected(myCbFinalState);
    }
  }
 public boolean isReplaceLValues() {
   if (myOccurrencesCount <= 1 || !myAnyLValueOccurences || myCbReplaceWrite == null) {
     return true;
   } else {
     return myCbReplaceWrite.isSelected();
   }
 }
 protected boolean isUseInitializer() {
   if (myIsInvokedOnDeclaration) return myHasInitializer;
   return myCbUseInitializer != null && myCbUseInitializer.isSelected();
 }
 protected boolean isDeleteLocalVariable() {
   return myIsInvokedOnDeclaration
       || myCbDeleteLocalVariable != null && myCbDeleteLocalVariable.isSelected();
 }