CompilationUnit unit = parseCompilationUnit(source);
if (unit == null) {
return null;
}
NodeLocator locator = new NodeLocator(element.getNameOffset());
AstNode nameNode = locator.searchWithin(unit);
while (nameNode != null) {
if (nameNode instanceof AnnotatedNode) {
Comment comment = ((AnnotatedNode) nameNode).getDocumentationComment();
if (comment == null) {
return null;