final List list= new ArrayList(changes.length + fDelegateChanges.size());
final List list= new ArrayList(changes.length);
	public Change createChange(IProgressMonitor monitor) throws CoreException {		try {			final TextChange[] changes= fChangeManager.getAllChanges();			final List list= new ArrayList(changes.length + fDelegateChanges.size());			list.addAll(Arrays.asList(changes));			list.addAll(fDelegateChanges);			return new DynamicValidationStateChange(RefactoringCoreMessages.Change_javaChanges, (Change[]) list.toArray(new Change[list.size()])) {				public final ChangeDescriptor getDescriptor() {					final Map arguments= new HashMap();					String project= null;					IJavaProject javaProject= fMethod.getJavaProject();					if (javaProject != null)						project= javaProject.getElementName();					int flags= JavaRefactoringDescriptor.JAR_IMPORTABLE | JavaRefactoringDescriptor.JAR_REFACTORABLE | RefactoringDescriptor.STRUCTURAL_CHANGE;					try {						if (!Flags.isPrivate(fMethod.getFlags()))							flags|= RefactoringDescriptor.MULTI_CHANGE;					} catch (JavaModelException exception) {						JavaPlugin.log(exception);					}					final IType declaring= fMethod.getDeclaringType();					try {						if (declaring.isAnonymous() || declaring.isLocal())							flags|= JavaRefactoringDescriptor.JAR_SOURCE_ATTACHMENT;					} catch (JavaModelException exception) {						JavaPlugin.log(exception);					}					final JavaRefactoringDescriptor descriptor= new JavaRefactoringDescriptor(ID_RENAME_METHOD, project, Messages.format(RefactoringCoreMessages.RenameMethodProcessor_descriptor_description, new String[] { JavaElementLabels.getTextLabel(fMethod, JavaElementLabels.ALL_FULLY_QUALIFIED), getNewElementName()}), getComment(), arguments, flags);					arguments.put(JavaRefactoringDescriptor.ATTRIBUTE_INPUT, descriptor.elementToHandle(fMethod));					arguments.put(JavaRefactoringDescriptor.ATTRIBUTE_NAME, getNewElementName());					arguments.put(ATTRIBUTE_REFERENCES, Boolean.valueOf(fUpdateReferences).toString());					arguments.put(ATTRIBUTE_DELEGATE, Boolean.valueOf(fDelegateUpdating).toString());					arguments.put(ATTRIBUTE_DEPRECATE, Boolean.valueOf(fDelegateDeprecation).toString());					return new RefactoringChangeDescriptor(descriptor);				}			};		} finally {			monitor.done();		}	}