private static void collectAnnotatedMethodsForClass(Class<? extends Annotation> annotCls,
			Class<?> cls, Set<Method> defs) {
		for (Method method : cls.getDeclaredMethods()) {
			Annotation annot = method.getAnnotation(annotCls);
			if (annot == null) {
				continue;
			}
			defs.add(method);
		}
	}
Collect from among the given class, its superclasses, and its interfaces all methods
annotated with the given annotation type.

@param annotCls the annotation type
@param cls the class whose methods to examine
@return the set of all methods having the given annotation type
Ghidra/Framework/Emulation/src/main/java/utilities/util/AnnotationUtilities.java