ExtractInterfaceRefactoring ref= ExtractInterfaceRefactoring.create(clas, JavaPreferencesSettings.getCodeGenerationSettings());
ExtractInterfaceRefactoring ref= ExtractInterfaceRefactoring.create(clas, JavaPreferencesSettings.getCodeGenerationSettings(clas.getJavaProject()));
	private void validateFailingTest(String className, String newInterfaceName, boolean extractAll, int expectedSeverity) throws Exception {		IType clas= getClassFromTestFile(getPackageP(), className);		ExtractInterfaceRefactoring ref= ExtractInterfaceRefactoring.create(clas, JavaPreferencesSettings.getCodeGenerationSettings());				ref.setNewInterfaceName(newInterfaceName);		if (extractAll)			ref.setExtractedMembers(ref.getExtractableMembers());		assertTrue("was not supposed to pass", performRefactoring(ref) != null);			assertEquals("was not supposed to fail with different severity", expectedSeverity, performRefactoring(ref).getSeverity());	}