if (methodDecl.isConstructor()) {
// @Autowired can only be applied to one constructor per class
// make sure no other constructors are already annotated
TypeDeclaration typeDecl = getEnclosingTypeDeclaration(methodDecl);
if (typeDecl != null) {
List<BodyDeclaration> decls = typeDecl.bodyDeclarations();
for (BodyDeclaration decl : decls) {
if (decl instanceof MethodDeclaration) {
MethodDeclaration currentMethodDecl = (MethodDeclaration) decl;
if (currentMethodDecl.isConstructor() && currentMethodDecl != methodDecl) {
if (ProposalCalculatorUtil.hasAnnotation(getAnnotationName(), currentMethodDecl)) {