* @return
*/
public static ValidationProblem findProblem(BodyDeclaration declToMatch, String problemType, ICompilationUnit cu,
String typeNameToMatch) {
IBeansModel model = BeansCorePlugin.getModel();
IBeansProject springProject = model.getProject(cu.getJavaProject().getProject());
Set<IBeansConfig> configs = springProject.getConfigs();
for (IBeansConfig config : configs) {
AutowireDependencyProvider provider = new AutowireDependencyProvider(config, config);
provider.resolveAutowiredDependencies();
List<ValidationProblem> problems = provider.getValidationProblems();
for (ValidationProblem problem : problems) {