public static Composite createVisibilityControl(Composite parent, final IVisibilityChangeListener visibilityChangeListener, int[] availableVisibilities, int currectVisibility) {
public static Composite createVisibilityControl(Composite parent, final IVisibilityChangeListener visibilityChangeListener, int[] availableVisibilities, int correctVisibility) {
	public static Composite createVisibilityControl(Composite parent, final IVisibilityChangeListener visibilityChangeListener, int[] availableVisibilities, int currectVisibility) {		List allowedVisibilities= convertToIntegerList(availableVisibilities);		if (allowedVisibilities.size() == 1)			return null;				Group group= new Group(parent, SWT.NONE);		group.setText(RefactoringMessages.getString("VisibilityControlUtil.Access_modifier")); //$NON-NLS-1$		GridData gd= new GridData(GridData.FILL_HORIZONTAL);		group.setLayoutData(gd);		GridLayout layout= new GridLayout();		layout.numColumns= 4; layout.marginWidth= 0;		group.setLayout(layout);				String[] labels= new String[] {			"&public", //$NON-NLS-1$			"pro&tected", //$NON-NLS-1$			RefactoringMessages.getString("VisibilityControlUtil.defa&ult_4"), //$NON-NLS-1$			"pri&vate" //$NON-NLS-1$		};		Integer[] data= new Integer[] {					new Integer(Modifier.PUBLIC),					new Integer(Modifier.PROTECTED),					new Integer(Modifier.NONE),					new Integer(Modifier.PRIVATE)};		Integer initialVisibility= new Integer(currectVisibility);		for (int i= 0; i < labels.length; i++) {			Button radio= new Button(group, SWT.RADIO);			Integer visibilityCode= data[i];			radio.setText(labels[i]);			radio.setData(visibilityCode);			radio.setSelection(visibilityCode.equals(initialVisibility));			radio.setEnabled(allowedVisibilities.contains(visibilityCode));			radio.addSelectionListener(new SelectionAdapter() {				public void widgetSelected(SelectionEvent event) {					visibilityChangeListener.visibilityChanged(((Integer)event.widget.getData()).intValue());				}			});		}		group.setLayoutData((new GridData(GridData.FILL_HORIZONTAL)));		return group;	}