resourceTypeVisitor.setFound(false);
resourceTypeVisitor.setProposedPath(proposedResourcePath);
JavaSourceFacet facet = project.getFacet(JavaSourceFacet.class);
while (true)
{
facet.visitJavaSources(resourceTypeVisitor);
if (resourceTypeVisitor.isFound())
{
if (proposedQualifiedClassName.equals(resourceTypeVisitor.getQualifiedClassNameForMatch()))
{
// The class might be overwritten later, so break out