}
return builder.toString();
}
private String getPackageName(TypeElement typeElement) {
QualifiedNameable enclosingElement = (QualifiedNameable) typeElement.getEnclosingElement();
while (!(enclosingElement instanceof PackageElement)) {
enclosingElement = (QualifiedNameable) enclosingElement.getEnclosingElement();
}
return enclosingElement.getQualifiedName().toString();
}