ref.setMethodsToDelete(getMethods(ref.getMatchingElements()));
ref.setMethodsToDelete(getMethods(ref.getMatchingElements(new NullProgressMonitor())));
	private void helper1(String[] methodNames, String[][] signatures, boolean deleteAllInSourceType, boolean deleteAllMatchingMethods) throws Exception{		ICompilationUnit cu= createCUfromTestFile(getPackageP(), "A");		try{			IType type= getType(cu, "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);			assertEquals("precondition was supposed to pass", null, result);						String expected= getFileContents(getOutputTestFileName("A"));			String actual= cu.getSource();			//assertEquals("incorrect lengths", expected.length(), actual.length());			assertEquals("incorrect modification", expected, actual);		} finally{			cu.delete(false, null);		}		}