MethodDeclaration methodDeclaration= RefactoringAnalyzeUtil.getMethodDeclaration(RefactoringAnalyzeUtil.getFirstEdit(edits), change, newCUNode); SimpleName[] problemNodes= ProblemNodeFinder.getProblemNodes(methodDeclaration, edits, change, fullKey);
ASTNode enclosing= getEnclosingBlockOrMethod(edits, change, newCUNode); SimpleName[] problemNodes= ProblemNodeFinder.getProblemNodes(enclosing, edits, change, fullKey);
	private RefactoringStatus analyzeAST() throws JavaModelException{		ICompilationUnit wc= null;		try {			RefactoringStatus result= new RefactoringStatus();									TextEdit[] edits= getAllRenameEdits();			TextChange change= new TextBufferChange(RefactoringCoreMessages.getString("RenameTempRefactoring.rename"), TextBuffer.create(fCu.getSource())); //$NON-NLS-1$			change.setKeepExecutedTextEdits(true);					wc= RefactoringAnalyzeUtil.getWorkingCopyWithNewContent(edits, change, fCu);			String newCuSource= change.getPreviewContent();			CompilationUnit newCUNode= AST.parseCompilationUnit(newCuSource.toCharArray(), fCu.getElementName(), fCu.getJavaProject());						result.merge(analyzeCompileErrors(newCuSource, newCUNode));			if (result.hasError())				return result;						String fullKey= RefactoringAnalyzeUtil.getFullDeclarationBindingKey(edits, fCompilationUnitNode);				MethodDeclaration methodDeclaration= RefactoringAnalyzeUtil.getMethodDeclaration(RefactoringAnalyzeUtil.getFirstEdit(edits), change, newCUNode);			SimpleName[] problemNodes= ProblemNodeFinder.getProblemNodes(methodDeclaration, edits, change, fullKey);			result.merge(RefactoringAnalyzeUtil.reportProblemNodes(newCuSource, problemNodes));			return result;		} catch(CoreException e) {			throw new JavaModelException(e);		} finally{			if (wc != null)				wc.destroy();		}	}