static boolean isOverload(List<PythonTypeStubMethod> methods,
			ListIterator<PythonTypeStubMethod> it, PythonTypeStubMethod method) {
		if (it.hasNext()) {
			if (methods.get(it.nextIndex()).getName().equals(method.getName())) {
				return true;
			}
		}
		int index = it.previousIndex();
		if (index >= 1) {
			// the previous index is actually the index of the method parameter
			if (methods.get(index - 1).getName().equals(method.getName())) {
				return true;
			}
		}
		return false;
	}
Checks if the provided method needs the typing.overload decorator

@param methods the list of methods
@param it the current iterator
@param method the method to check
@return true if typing.overload should be applied
GhidraBuild/BuildFiles/Doclets/src/main/java/ghidra/doclets/typestubs/PythonTypeStubType.java