@Override
	public Statement apply(Statement base, Description description) {
		Repeated annot = description.getAnnotation(Repeated.class);
		if (annot == null) {
			return base;
		}
		return new RepeatedStatement(base, description, annot.value());
	}
A test rule which processes the {@link Repeated} annotation

<p>
This must be included in your test case (or a superclass) as a field with the {@link Rule}
annotation. It's included in {@link AbstractGenericTest}, so most Ghidra test classes already
have it.
Ghidra/Framework/Generic/src/main/java/generic/test/rule/RepeatedTestRule.java