private boolean probeForCDI(Project project) {
final boolean matched[] = new boolean[1];
matched[0] = false;
project.getFacet(JavaSourceFacet.class).visitJavaSources(
new JavaResourceVisitor() {
@Override
public void visit(VisitContext context, JavaResource javaResource) {
try {
JavaSource<?> javaType = javaResource.getJavaType();
if (javaType.isClass()) {