private boolean resolveTypeDeclaration(TreeLogger logger, String unitSource,
TypeDeclaration clazz) {
SourceTypeBinding binding = clazz.binding;
assert (binding.constantPoolName() != null);
String qname = String.valueOf(binding.qualifiedSourceName());
logger = logger.branch(TreeLogger.SPAM, "Found type '" + qname + "'", null);
// Handle package-info classes.
if (isPackageInfoTypeName(qname)) {
return resolvePackage(logger, clazz);