genStubSettings.methodModifiers= curr.getFlags();
	public static String[] genOverrideStubs(IMethod[] methodsToImplement, IType type, ITypeHierarchy hierarchy, CodeGenerationSettings settings, IImportsStructure imports) throws CoreException {		GenStubSettings genStubSettings= new GenStubSettings(settings);		genStubSettings.methodOverwrites= true;		ICompilationUnit cu= type.getCompilationUnit();		String[] result= new String[methodsToImplement.length];		for (int i= 0; i < methodsToImplement.length; i++) {			IMethod curr= methodsToImplement[i];			IMethod overrides= JavaModelUtil.findMethodImplementationInHierarchy(hierarchy, type, curr.getElementName(), curr.getParameterTypes(), curr.isConstructor());			if (overrides != null) {				genStubSettings.callSuper= true;				curr= overrides;			}			IMethod desc= JavaModelUtil.findMethodDeclarationInHierarchy(hierarchy, type, curr.getElementName(), curr.getParameterTypes(), curr.isConstructor());			if (desc == null) {				desc= curr;			}			result[i]= genStub(cu, type.getElementName(), curr, desc.getDeclaringType(), genStubSettings, imports);		}		return result;	}