ExtractInterfaceRefactoring ref= ExtractInterfaceRefactoring.create(clas, JavaPreferencesSettings.getCodeGenerationSettings());
ExtractInterfaceRefactoring ref= ExtractInterfaceRefactoring.create(clas, JavaPreferencesSettings.getCodeGenerationSettings(clas.getJavaProject()));
	private void validatePassingTest(String className, String[] cuNames, String newInterfaceName, boolean replaceOccurrences, String[] extractedMethodNames, String[][] extractedSignatures, String[] extractedFieldNames) throws Exception {		IType clas= getClassFromTestFile(getPackageP(), className);						ExtractInterfaceRefactoring ref= ExtractInterfaceRefactoring.create(clas, JavaPreferencesSettings.getCodeGenerationSettings());		ref.setNewInterfaceName(newInterfaceName);		assertEquals("interface name should be accepted", RefactoringStatus.OK, ref.checkNewInterfaceName(newInterfaceName).getSeverity());				ICompilationUnit[] cus= new ICompilationUnit[cuNames.length];		for (int i= 0; i < cuNames.length; i++) {			cus[i]= createCUfromTestFile(clas.getPackageFragment(), cuNames[i]);					}		ref.setReplaceOccurrences(replaceOccurrences);			IMethod[] extractedMethods= getMethods(clas, extractedMethodNames, extractedSignatures);	    IField[] extractedFields= getFields(clas, extractedFieldNames);		ref.setExtractedMembers(merge(extractedMethods, extractedFields));		assertEquals("was supposed to pass", null, performRefactoring(ref));		for (int i= 0; i < cus.length; i++) {			String expected= getFileContents(getOutputTestFileName(cuNames[i]));			String actual= cus[i].getSource();			assertEqualLines("(" + cus[i].getElementName() +")", expected, actual);		}		ICompilationUnit interfaceCu= clas.getPackageFragment().getCompilationUnit(newInterfaceName + ".java");		assertEqualLines("(interface cu)", getFileContents(getOutputTestFileName(newInterfaceName)), interfaceCu.getSource());	}