int i = 0;
for (Annotation annotation : annotations) {
if (!annotation.annotationType().isAnnotationPresent(AttributesClass.class)) {
continue;
}
AttributesClass attributesClass = annotation.annotationType().getAnnotation(AttributesClass.class);
Class<? extends Map<String, Object>> attributesType = attributesClass.value();
writer.println("static {");
String typeName = attributesType.getName();
String varName = "attributes_" + (i++);
writer.println(" " + typeName + " " + varName + " = new " + typeName + "();");