MoveInstanceMethodRefactoring ref= MoveInstanceMethodRefactoring.create(method, JavaPreferencesSettings.getCodeGenerationSettings());
MoveInstanceMethodRefactoring ref= MoveInstanceMethodRefactoring.create(method, JavaPreferencesSettings.getCodeGenerationSettings(selectionCu.getJavaProject()));
	private void helper1(String[] cuQNames, int selectionCuIndex, int startLine, int startColumn, int endLine, int endColumn, int newTargetType, String newTargetName, String newMethodName, boolean inlineDelegator, boolean removeDelegator) throws Exception {		Assert.isTrue(0 <= selectionCuIndex && selectionCuIndex < cuQNames.length);		toSucceed= true;		ICompilationUnit[] cus= createCUs(cuQNames);		ICompilationUnit selectionCu= cus[selectionCuIndex];		ISourceRange selection= TextRangeUtil.getSelection(selectionCu, startLine, startColumn, endLine, endColumn);		IMethod method= getMethod(selectionCu, selection);		assertNotNull(method);		MoveInstanceMethodRefactoring ref= MoveInstanceMethodRefactoring.create(method, JavaPreferencesSettings.getCodeGenerationSettings());		assertNotNull("refactoring should be created", ref);		RefactoringStatus preconditionResult= ref.checkInitialConditions(new NullProgressMonitor());		assertTrue("activation was supposed to be successful", preconditionResult.isOK());		chooseNewTarget(ref, newTargetType, newTargetName);		MoveInstanceMethodProcessor processor= ref.getMoveMethodProcessor();		processor.setInlineDelegator(inlineDelegator);		processor.setRemoveDelegator(removeDelegator);		if (newMethodName != null)			processor.setMethodName(newMethodName);		preconditionResult.merge(ref.checkFinalConditions(new NullProgressMonitor()));		assertTrue("precondition was supposed to pass", !preconditionResult.hasError());		performChange(ref, false);		for (int i= 0; i < cus.length; i++) {			String outputTestFileName= getOutputTestFileName(getSimpleName(cuQNames[i]));			assertEqualLines("Incorrect inline in " + outputTestFileName, getFileContents(outputTestFileName), cus[i].getSource());		}	}