for (Annotation annotation:annotations){
if (annotation.annotationType().equals(IsSingleton.class)){
IsSingleton singletonAnnotation = (IsSingleton) annotation;
Class<?> clazz = method.getMethod().getParameterTypes()[index];
@SuppressWarnings({ "rawtypes", "unchecked" })
SingletonGen<?> generator = new SingletonGen(singletonAnnotation.singletonMethodName(), singletonAnnotation.fieldName(), clazz){
};
this.fromClassGenerators.put(clazz, generator);
}
}
index++;