in tools/javac/ApiProcessor.java [49:58]
private static ExecutableElement findAnnotationValue(TypeElement e) {
for (Element t : e.getEnclosedElements()) {
if (t instanceof ExecutableElement executable) {
if (t.getSimpleName().toString().equals("value")) {
return executable;
}
}
}
throw new Error(e.getQualifiedName() + ".value() method not found");
}