genMethodDeclaration(destTypeName, method, bodyContent, imports, buf);
int flags= settings.methodModifiers; if (flags == -1) { flags= method.getFlags(); }  genMethodDeclaration(destTypeName, method, flags, bodyContent, imports, buf);
	public static String genStub(ICompilationUnit cu, String destTypeName, IMethod method, IType definingType, GenStubSettings settings, IImportsStructure imports) throws CoreException {		String methName= method.getElementName();		String[] paramNames= guessArgumentNames(method.getJavaProject(), method.getParameterNames());		String returnType= method.isConstructor() ? null : method.getReturnType();		String lineDelimiter= String.valueOf('\n'); // reformatting required						StringBuffer buf= new StringBuffer();		// add method comment		if (settings.createComments && cu != null) {			IMethod overridden= null;			if (settings.methodOverwrites && returnType != null) {				overridden= JavaModelUtil.findMethod(methName, method.getParameterTypes(), false, definingType.getMethods());			}			String comment= getMethodComment(cu, destTypeName, methName, paramNames, method.getExceptionTypes(), returnType, overridden, lineDelimiter);			if (comment != null) {				buf.append(comment);			} else {				buf.append("/**").append(lineDelimiter); //$NON-NLS-1$				buf.append(" *").append(lineDelimiter); //$NON-NLS-1$				buf.append(" */").append(lineDelimiter); //$NON-NLS-1$										}			buf.append(lineDelimiter);		}		// add method declaration		String bodyContent= null;		if (!settings.noBody) {			String bodyStatement= getDefaultMethodBodyStatement(methName, paramNames, returnType, settings.callSuper);			bodyContent= getMethodBodyContent(returnType == null, method.getJavaProject(), destTypeName, methName, bodyStatement, lineDelimiter);			if (bodyContent == null) {				bodyContent= ""; //$NON-NLS-1$			}		}		genMethodDeclaration(destTypeName, method, bodyContent, imports, buf);		return buf.toString();	}