private void addStub(IMethod sourceMethod, CompilationUnit declaringCuNode, TypeDeclaration typeToCreateStubIn, ICompilationUnit newCu, OldASTRewrite rewrite, IProgressMonitor pm, RefactoringStatus status) throws CoreException {
private void addStub(IMethod sourceMethod, CompilationUnit declaringCuNode, TypeDeclaration typeToCreateStubIn, ICompilationUnit newCu, ASTRewrite rewrite, IProgressMonitor pm, RefactoringStatus status) throws CoreException {
	private void addStub(IMethod sourceMethod, CompilationUnit declaringCuNode, TypeDeclaration typeToCreateStubIn, ICompilationUnit newCu, OldASTRewrite rewrite, IProgressMonitor pm, RefactoringStatus status) throws CoreException {		MethodDeclaration methodToCreateStubFor= ASTNodeSearchUtil.getMethodDeclarationNode(sourceMethod, declaringCuNode);		AST ast= rewrite.getAST();		MethodDeclaration newMethod= ast.newMethodDeclaration();		newMethod.setBody(getMethodStubBody(methodToCreateStubFor, ast));		newMethod.setConstructor(false);		newMethod.setExtraDimensions(methodToCreateStubFor.getExtraDimensions());		newMethod.modifiers().addAll(ASTNodeFactory.newModifiers(ast, createModifiersForMethodStubs(sourceMethod, methodToCreateStubFor, pm, status)));		newMethod.setName(createCopyOfSimpleName(methodToCreateStubFor.getName(), ast));		copyReturnType(rewrite, getDeclaringCU(), methodToCreateStubFor, newMethod);				copyParameters(rewrite, getDeclaringCU(), methodToCreateStubFor, newMethod);		copyThrownExceptions(methodToCreateStubFor, newMethod);		newMethod.setJavadoc(createJavadocForStub(typeToCreateStubIn.getName().getIdentifier(), methodToCreateStubFor, newMethod, newCu, rewrite));		typeToCreateStubIn.bodyDeclarations().add(newMethod);		rewrite.markAsInserted(newMethod);	}