if (qualifiedUpdating == null || qualifiedUpdating.canEnableQualifiedNameUpdating())
if (qualifiedUpdating == null || !qualifiedUpdating.canEnableQualifiedNameUpdating())
	private void addOptionalUpdateCheckboxes(final Composite parent, final int marginWidth) {		final IReferenceUpdating referenceUpdating= (IReferenceUpdating) getRefactoring().getAdapter(IReferenceUpdating.class);		if (referenceUpdating == null || !referenceUpdating.canEnableUpdateReferences())			return;		final ITextUpdating textUpdating= (ITextUpdating) getRefactoring().getAdapter(ITextUpdating.class);		if (textUpdating == null || !textUpdating.canEnableTextUpdating())			return;		final IQualifiedNameUpdating qualifiedUpdating= (IQualifiedNameUpdating) getRefactoring().getAdapter(IQualifiedNameUpdating.class);		if (qualifiedUpdating == null || qualifiedUpdating.canEnableQualifiedNameUpdating())			return;		boolean value= false;		final ExpandableComposite expandable= createExpandableSection(parent, getRefactoring(), RefactoringMessages.RenameInputWizardPage_update_section, 1, new IDescriptionProvider() {			public String getDescription(final Refactoring refactoring) {				final List settings= new ArrayList();				final IReferenceUpdating references= (IReferenceUpdating) refactoring.getAdapter(IReferenceUpdating.class);				if (references != null && references.canEnableUpdateReferences()) {					final boolean result= references.getUpdateReferences();					if (result)						settings.add(RefactoringMessages.RenameInputWizardPage_references_setting);				}				final ITextUpdating text= (ITextUpdating) refactoring.getAdapter(ITextUpdating.class);				if (text != null && text.canEnableTextUpdating()) {					final boolean result= text.getUpdateTextualMatches();					if (result)						settings.add(RefactoringMessages.RenameInputWizardPage_textual_setting);				}				final IQualifiedNameUpdating qualified= (IQualifiedNameUpdating) refactoring.getAdapter(IQualifiedNameUpdating.class);				if (qualified != null && qualified.canEnableQualifiedNameUpdating()) {					final boolean result= qualified.getUpdateQualifiedNames();					if (result)						settings.add(RefactoringMessages.RenameInputWizardPage_qualified_setting);				}				if (!settings.isEmpty()) {					String pattern= null;					final Object[] objects= settings.toArray(new String[settings.size()]);					switch (objects.length) {						case 1:							pattern= RefactoringMessages.RenameInputWizardPage_update_pattern_one;							break;						case 2:							pattern= RefactoringMessages.RenameInputWizardPage_update_pattern_two;							break;						default:							pattern= RefactoringMessages.RenameInputWizardPage_update_pattern_three;							break;					}					return Messages.format(pattern, objects);				}				return null;			}		});		final Composite composite= new Composite(expandable, SWT.NONE);		expandable.setClient(composite);		composite.setLayout(new GridLayout(1, false));		fUpdateReferences= new Button(composite, SWT.CHECK);		fUpdateReferences.setText(RefactoringMessages.RenameInputWizardPage_update_references);		fUpdateReferences.setSelection(true);		makeScrollable(fUpdateReferences); // bug 77901		referenceUpdating.setUpdateReferences(fUpdateReferences.getSelection());		fUpdateReferences.addSelectionListener(new SelectionAdapter() {			public void widgetSelected(SelectionEvent e) {				referenceUpdating.setUpdateReferences(fUpdateReferences.getSelection());			}		});		value= getBooleanSetting(UPDATE_TEXTUAL_MATCHES, textUpdating.getUpdateTextualMatches());		fUpdateTextualMatches= new Button(composite, SWT.CHECK);		fUpdateTextualMatches.setText(RefactoringMessages.RenameInputWizardPage_update_textual_matches);		fUpdateTextualMatches.setSelection(value);		makeScrollable(fUpdateTextualMatches);		textUpdating.setUpdateTextualMatches(fUpdateTextualMatches.getSelection());		fUpdateTextualMatches.addSelectionListener(new SelectionAdapter() {			public void widgetSelected(SelectionEvent e) {				textUpdating.setUpdateTextualMatches(fUpdateTextualMatches.getSelection());				updateForcePreview();			}		});		value= getBooleanSetting(UPDATE_QUALIFIED_NAMES, qualifiedUpdating.getUpdateQualifiedNames());		fUpdateQualifiedNames= new Button(composite, SWT.CHECK);		int indent= marginWidth + fUpdateQualifiedNames.computeSize(SWT.DEFAULT, SWT.DEFAULT).x;		fUpdateQualifiedNames.setText(RefactoringMessages.RenameInputWizardPage_update_qualified_names);		fUpdateQualifiedNames.setSelection(value);		makeScrollable(fUpdateQualifiedNames);		fQualifiedNameComponent= new QualifiedNameComponent(composite, SWT.NONE, qualifiedUpdating, getRefactoringSettings());		fQualifiedNameComponent.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));		GridData data= (GridData) fQualifiedNameComponent.getLayoutData();		data.horizontalAlignment= GridData.FILL;		data.horizontalIndent= indent;		makeScrollable(fQualifiedNameComponent);		updateQulifiedNameUpdating(qualifiedUpdating, value);		fUpdateQualifiedNames.addSelectionListener(new SelectionAdapter() {			public void widgetSelected(SelectionEvent e) {				boolean enabled= ((Button) e.widget).getSelection();				updateQulifiedNameUpdating(qualifiedUpdating, enabled);			}		});	}