public Set<IType> locateJavaConfigs(IProject project,
IProgressMonitor monitor) {
Set<IType> types = new HashSet<IType>();
IJavaProject javaProj = JdtUtils.getJavaProject(project);
if (javaProj != null) {
IJavaSearchScope sources = SearchEngine.createJavaSearchScope(new IJavaElement[] { javaProj },
IJavaSearchScope.SOURCES);
SearchPattern bootAutoConfigPattern = SearchPattern.createPattern("org.springframework.boot.autoconfigure.EnableAutoConfiguration",
IJavaSearchConstants.ANNOTATION_TYPE, IJavaSearchConstants.ANNOTATION_TYPE_REFERENCE,
SearchPattern.R_EXACT_MATCH | SearchPattern.R_CASE_SENSITIVE);
Set<IType> candidates = org.springframework.ide.eclipse.core.java.JdtUtils.searchForJavaConfigs(bootAutoConfigPattern, sources);