final List<VariableElement> getFields(boolean protectedScope) {
		if (fields != null) {
			return fields;
		}
		fields = new ArrayList<>();
		for (Element child : el.getEnclosedElements()) {
			switch (child.getKind()) {
				case ENUM_CONSTANT:
				case FIELD:
					break;
				default:
					continue;
			}
			if (!isVisible(child, protectedScope)) {
				continue;
			}
			fields.add((VariableElement) child);
		}
		return fields;
	}
Gets a list of all the visible fields in this type

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