ref.setMethodsToDelete(getMethods(ref.getMatchingElements()));
ref.setMethodsToDelete(getMethods(ref.getMatchingElements(new NullProgressMonitor())));
	private void helper3(String[] methodNames, String[][] signatures, boolean deleteAllInSourceType, boolean deleteAllMatchingMethods) throws Exception {		ICompilationUnit cuA= createCUfromTestFile(getPackageP(), "A");		ICompilationUnit cuB= createCUfromTestFile(getPackageP(), "B");		try{			IType type= getType(cuB, "B");			IMethod[] methods= getMethods(type, methodNames, signatures);			PullUpRefactoring ref= createRefactoring(methods);			if (deleteAllInSourceType)				ref.setMethodsToDelete(methods);			if (deleteAllMatchingMethods)				ref.setMethodsToDelete(getMethods(ref.getMatchingElements()));						RefactoringStatus result= performRefactoring(ref);			assertTrue("precondition was supposed to fail", result != null && ! result.isOK());		} finally{			cuA.delete(false, null);			cuB.delete(false, null);		}					}