@Override
	public void generateLocations(LocationCallback callback) {
		Class<?> c = getClass();
		Method[] methods = c.getDeclaredMethods();
		for (Method method : methods) {
			if (method.getName().startsWith("get")) {
				try {
					ProgramLocation[] locs =
						(ProgramLocation[]) method.invoke(this, (Object[]) null);
					for (ProgramLocation loc : locs) {
						if (loc != null) {
							callback.locationGenerated(loc);
						}
					}
				}
				catch (IllegalAccessException e) {
					e.printStackTrace();
				}
				catch (InvocationTargetException e) {
					e.printStackTrace();
				}
			}
		}
	}
Toggle open composite locations within Code Browser
which have locations generated
@param cb
Ghidra/Features/Base/src/test/java/ghidra/app/SampleLocationGenerator.java