final List<PythonTypeStubMethod> getMethods(boolean protectedScope, boolean filterConstructor) {
		if (methods != null) {
			return methods;
		}
		methods = new ArrayList<>();
		for (Element child : el.getEnclosedElements()) {
			switch (child.getKind()) {
				case CONSTRUCTOR:
					if (filterConstructor) {
						continue;
					}
				case METHOD:
					if (!isVisible(child, protectedScope)) {
						continue;
					}
					if (isUndocumentedOverride(child)) {
						continue;
					}
					methods.add(new PythonTypeStubMethod(this, (ExecutableElement) child,
						filterConstructor));
					break;
				default:
					break;
			}

		}
		// apparently overloads must come one after another
		// therefore this must be sorted
		methods.sort(null);
		return methods;
	}
Gets a list of all visible methods in this type

@param protectedScope true to include protected methods
@param filterConstructor true to filter constructors
@return a list of visible methods
GhidraBuild/BuildFiles/Doclets/src/main/java/ghidra/doclets/typestubs/PythonTypeStubType.java