if (problemType.equals(AutowireDependencyProvider.TOO_MANY_MATCHING_BEANS)) {
proposals.addAll(new QualifierAnnotationQuickAssistProcessor().getAssists(decl,
assistContext));
}
else if (problemType.equals(AutowireDependencyProvider.REQUIRED_NO_MATCH)) {
proposals.addAll(new AutowireRequiredNotFoundAnnotationQuickAssistProcessor().getAssists(
decl, assistContext));
}
}
else if (node instanceof FieldDeclaration) {
FieldDeclaration decl = (FieldDeclaration) node;
List<VariableDeclarationFragment> fragments = decl.fragments();
// SimpleName name = fragments.get(0).getName();
if (fragments.size() > 0) {
if (problemType.equals(AutowireDependencyProvider.TOO_MANY_MATCHING_BEANS)) {
proposals.addAll(new QualifierAnnotationQuickAssistProcessor().getAssists(decl,
assistContext));
}
else if (problemType.equals(AutowireDependencyProvider.REQUIRED_NO_MATCH)) {
proposals.addAll(new AutowireRequiredNotFoundAnnotationQuickAssistProcessor()
.getAssists(decl, assistContext));
}
}