JavaPreferencesSettings.getCodeGenerationSettings());
JavaPreferencesSettings.getCodeGenerationSettings(cu.getJavaProject()));
	private void failHelper(boolean staticFactory, int expectedStatus) throws Exception {		ICompilationUnit	cu= createCUForSimpleTest(getPackageP(), false, true);		ISourceRange		selection= findSelectionInSource(cu.getSource());		IntroduceFactoryRefactoring	ref= IntroduceFactoryRefactoring.create(cu, selection.getOffset(), selection.getLength(), 												   JavaPreferencesSettings.getCodeGenerationSettings());		RefactoringStatus	result= performRefactoring(ref);		assertNotNull("precondition was supposed to fail", result);		assertEquals("status", expectedStatus, result.getSeverity());	}	