ref.setMethodsToDelete(getMethods(ref.getMatchingElements()));
ref.setMethodsToDelete(getMethods(ref.getMatchingElements(new NullProgressMonitor())));
	private void fieldMethodHelper1(String[] fieldNames, String[] methodNames, String[][] signatures, boolean deleteAllInSourceType, boolean deleteAllMatchingMethods) throws Exception{		ICompilationUnit cu= createCUfromTestFile(getPackageP(), "A");		try{			IType type= getType(cu, "B");			IField[] fields= getFields(type, fieldNames);			IMethod[] methods= getMethods(type, methodNames, signatures);			PullUpRefactoring ref= createRefactoring(merge(methods, fields));			if (deleteAllInSourceType)				ref.setMethodsToDelete(methods);			if (deleteAllMatchingMethods)				ref.setMethodsToDelete(getMethods(ref.getMatchingElements()));											RefactoringStatus result= performRefactoring(ref);			assertEquals("precondition was supposed to pass", null, result);						String expected= getFileContents(getOutputTestFileName("A"));			String actual= cu.getSource();			assertEquals("incorrect modification", expected, actual);		} finally{			cu.delete(false, null);		}		}