public ArgumentAnnotatedField(Element element) {
super(element, isRequired(element), getKey(element));
}
private static String getKey(Element element) {
Arg annotation = element.getAnnotation(Arg.class);
String field = element.getSimpleName().toString();
if (!"".equals(annotation.key())) {
return annotation.key();
}
return getVariableName(field);
}