private void printMethods(PrintWriter printer, Set<String> exports) {
		// methods must be sorted by name for typing.overload
		List<PythonTypeStubMethod> apiMethods = filter(api.getMethods(true, true));
		List<PythonTypeStubMethod> scriptMethods = filter(script.getMethods(true, true));

		int length = apiMethods.size() + scriptMethods.size();
		List<PythonTypeStubMethod> methods = new ArrayList<>(length);

		methods.addAll(apiMethods);
		methods.addAll(scriptMethods);
		methods.sort(null);

		ListIterator<PythonTypeStubMethod> methodIterator = methods.listIterator();

		while (methodIterator.hasNext()) {
			PythonTypeStubMethod method = methodIterator.next();
			boolean overload = PythonTypeStubType.isOverload(methods, methodIterator, method);
			method.process(printer, INDENT, overload);
			exports.add('"' + method.getName() + '"');
			printer.println();
		}
	}
Prints all the script methods

@param printer the printer
@param exports the set of methods to export
GhidraBuild/BuildFiles/Doclets/src/main/java/ghidra/doclets/typestubs/GhidraBuiltinsBuilder.java